okumin opened a new pull request, #4363: URL: https://github.com/apache/hive/pull/4363
### 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? Incorrect results will be correct results. ### How was this patch tested? This PR adds three test cases. All fail when we use the latest revision(`7bfc54ffc8baf5f3e7de326b750fe9355b11132b`). -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
