Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
1.14.0
-
None
-
None
-
None
Description
Data:
Use attached dataset
Query:
explain plan for select id from (select id, part_col, int_col, bool_col, date_col, float_col, time_col, ts_col from dfs.tmp.`DRILL_3855_test_data` where part_col = 'Partition_one' or part_col = 'Partition_two' union select id, part_col, int_col, bool_col, date_col, float_col, time_col, ts_col from dfs.tmp.`DRILL_3855_test_data` where part_col = 'Partition_two' or part_col = 'Partition_three') where int_col = 0
Expected plan:
Scan ... columns=[`part_col`, `id`, `int_col`]
Actual plan:
Scan ... columns=[`part_col`, `id`, `int_col`, `bool_col`, `date_col`, `float_col`, `time_col`, `ts_col`]
Notes:
Works as expected if change "union" to "union all"
Attachments
Attachments
Issue Links
- relates to
-
DRILL-3130 Project can be pushed below union all / union to improve performance
- Resolved
-
CALCITE-2410 Enable ProjectSetOpTransposeRule for UNION (distinct) SetOp operator
- Closed