Github user jihoonson commented on the pull request:

    https://github.com/apache/tajo/pull/965#issuecomment-192067428
  
    In newly added tests, the same queries of our existing tests on union are 
executed, which means the queries of our union tests are executed twice for 
query result validation and result stat validation. I think it will be better 
to verify both query result and result stat together.
    
    It is simple if you get the query id of executed test query. You can get 
the query id from ResultSet which is actually the TajoResultSetBase. Once you 
get the query id, you can get TableDesc of the query result which includes the 
stat information. Here is an example.
    
    ```
    ResultSet res = executeQuery();
    QueryId qid = ((TajoResultSetBase)res).getQueryId();
    QueryInfo queryInfo = 
testingCluster.getMaster().getContext().getQueryJobManager().getFinishedQuery(qid);
    TableDesc desc = queryInfo.getResultDesc();
    System.out.println(desc.getStats().getNumRows());
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to