Github user blrunner commented on a diff in the pull request:

    https://github.com/apache/tajo/pull/965#discussion_r55159440
  
    --- Diff: tajo-core/src/main/java/org/apache/tajo/querymaster/Query.java ---
    @@ -402,6 +403,39 @@ public QueryState getSynchronizedState() {
         }
       }
     
    +  public boolean hasUnionPlan() throws Exception {
    +    boolean result = false;
    +
    +    // During executing UNION statement or UNION ALL statement, the 
terminal block doesn't have join plan and has
    +    // two more child blocks. In above case, Tajo should summarize result 
TableStats from all child stages.
    +    ExecutionBlock terminalBlock = plan.getTerminalBlock();
    +    terminalBlock.setPlan(terminalBlock.getPlan());
    --- End diff --
    
    I agree with you and reflected your comments.


---
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