Description
TakeOrderedAndProjectExec should respect child output ordering to avoid unnecessary sort. For example: TakeOrderedAndProjectExec on the top of SortMergeJoin.
SELECT * FROM t1 JOIN t2 ON t1.c1 = t2.c2 ORDER BY t1.c1 LIMIT 100;
TakeOrderedAndProjectExec should respect child output ordering to avoid unnecessary sort. For example: TakeOrderedAndProjectExec on the top of SortMergeJoin.
SELECT * FROM t1 JOIN t2 ON t1.c1 = t2.c2 ORDER BY t1.c1 LIMIT 100;