Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
Current Hive compiles
"SELECT * FROM TBL1 UNION SELECT * FROM TBL2 UNION SELECT * FROM TBL3"
to
TS - GBY - RS TS - GBY - RS - GBY - RS TS - GBY - RS - GBY
This can be optimized as follows:
TS - GBY - RS TS - GBY - RS TS - GBY - RS - GBY
Please check out the attached slides for detailed explanation and feel free to ask any questions or share suggestions. Also, it would be glad if one can share about better location of this optimization (e.g. SemanticAnalyzer, Calcite, etc.).
Attachments
Attachments
Issue Links
- links to