Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Done
-
None
-
None
Description
A query such as
Select a from (select a, b, c, ..., union all select a, b, c, ...)
will perform Union-All over all the specified columns on the two sides, despite the fact that only one column is asked for at the end. Ideally, we should perform ProjectPushDown rule for Union & Union-All to avoid them to generate results which will be discarded at the end.
Attachments
Issue Links
- is blocked by
-
DRILL-3855 Enable FilterSetOpTransposeRule, DrillProjectSetOpTransposeRule
- Closed
- is related to
-
DRILL-6417 Project is not pushed into scan if use subquery with UNION operator
- Closed