Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
For query:
select name from sales_dept union select name from it_dept order by mgr
We could generate a plan based on https://issues.apache.org/jira/browse/CALCITE-4017:
EnumerableUnion EnumerableProject EnumerableSort EnumerableTableScan[name="sales_dept"] EnumerableProject EnumerableSort EnumerableTableScan[name="it_dept"]
So EnumerableUnion should preserve ordering when all input have the same collation to make sure result of query is correct.
Attachments
Issue Links
- relates to
-
CALCITE-3221 Add MergeUnion operator in Enumerable convention
- Closed