zabetak commented on code in PR #5249: URL: https://github.com/apache/hive/pull/5249#discussion_r1685455985
########## ql/src/test/queries/clientpositive/cte_cbo_plan_json.q: ########## @@ -0,0 +1,16 @@ +CREATE TABLE emps +( + empid INTEGER, + deptno INTEGER, + name VARCHAR(10), + salary DECIMAL(8, 2) +); + +set hive.optimize.cte.materialize.threshold=1; +set hive.optimize.cte.suggester.class=org.apache.hadoop.hive.ql.optimizer.calcite.CommonTableExpressionIdentitySuggester; +set hive.optimize.cte.materialize.full.aggregate.only=false; + +EXPLAIN FORMATTED CBO +SELECT name FROM emps e WHERE salary > 50000 +UNION +SELECT name FROM emps e WHERE salary > 50000; Review Comment: Fixed in https://github.com/apache/hive/pull/5249/commits/8e5869f216f97c00df6bdacf35a2eecca348dbbd -- 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]
