Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Query 93 has join (including outer) b/w store_sales, store_return and reason. Without constraints store_return is joined with reason and then with store_sales.
But if a primary key is added on store_return (alter table store_returns add constraint tpcds_pk_sr primary key (sr_item_sk, sr_ticket_number) disable novalidate rely) join order becomes ((store_sales, store_return), reason) which is very inefficient.
Attachments
Attachments
Issue Links
- is related to
-
HIVE-20320 Turn on hive.optimize.remove.sq_count_check flag
- Closed