okumin opened a new pull request #1873:
URL: https://github.com/apache/hive/pull/1873


   ### What changes were proposed in this pull request?
   Build correct dependencies among CTEs in order to prevent wrong results.
   
   ### Why are the changes needed?
   A Hive query with `hive.optimize.cte.materialize.threshold` can return wrong 
results when it has complex CTEs.
   The issue can happen when multistage CTEs have dependencies and 
SemanticAnalyzer fails to link their tasks.
   https://issues.apache.org/jira/browse/HIVE-24606
   
   ### Does this PR introduce _any_ user-facing change?
   No. Just a bug fix.
   
   ### How was this patch tested?
   This PR adds three test cases. All fail when using the latest 
revision(`58552a0c6b42988efb5160b045a3bf985477f117`).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to