-
Notifications
You must be signed in to change notification settings - Fork 4.8k
HIVE-24167: TPC-DS query 14 fails while generating plan for the filter #5037
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
217b26d
6ed384e
dbfe700
ebc0278
393bc43
e43fe90
e5c26bd
e8b694f
a95ebad
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| --! qt:dataset:src | ||
|
|
||
| set hive.optimize.cte.materialize.threshold=1; | ||
| set hive.optimize.cte.materialize.full.aggregate.only=false; | ||
|
|
||
| EXPLAIN CBO | ||
| WITH materialized_cte AS ( | ||
| SELECT key, value FROM src WHERE key != '100' | ||
| ), | ||
| another_materialized_cte AS ( | ||
| SELECT key, value FROM src WHERE key != '100' | ||
| ) | ||
| SELECT a.key, a.value, b.key, b.value | ||
| FROM materialized_cte a | ||
| JOIN another_materialized_cte b ON a.key = b.key | ||
| ORDER BY a.key; | ||
|
Comment on lines
+6
to
+16
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider adding (or replacing this with) a traditional |
||
|
|
||
| WITH materialized_cte AS ( | ||
| SELECT key, value FROM src WHERE key != '100' | ||
| ), | ||
| another_materialized_cte AS ( | ||
| SELECT key, value FROM src WHERE key != '100' | ||
| ) | ||
| SELECT a.key, a.value, b.key, b.value | ||
| FROM materialized_cte a | ||
| JOIN another_materialized_cte b ON a.key = b.key | ||
| ORDER BY a.key; | ||
|
Comment on lines
+18
to
+27
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The problem is in the compilation phase so I don't think we need to actually run the query. Consider dropping the execution. If you opt to keep it then I would suggest crafting a much simpler test (without 1K lines in the output). It would be nice to keep the execution time of our test suite as low as possible. Moreover, it is not easy to see what the |
||
Uh oh!
There was an error while loading. Please reload this page.