Skip to content

Commit

Permalink
add plantree test
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwener committed Mar 6, 2023
1 parent 4c484a5 commit 551f257
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions datafusion/core/tests/sqllogictests/test_files/order.slt
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,17 @@ SELECT c1, c2 FROM test ORDER BY c1 DESC, c2 ASC
0 10

# eliminate duplicated sorted expr
query TT

This comment has been minimized.

Copy link
@alamb

alamb Mar 6, 2023

Contributor

👍

explain SELECT c1, c2 FROM test ORDER BY c1, c2, c1
----
logical_plan
Sort: test.c1 ASC NULLS LAST, test.c2 ASC NULLS LAST
TableScan: test projection=[c1, c2]
physical_plan
SortPreservingMergeExec: [c1@0 ASC NULLS LAST,c2@1 ASC NULLS LAST]
SortExec: expr=[c1@0 ASC NULLS LAST,c2@1 ASC NULLS LAST]
CsvExec: files={4 groups: [[WORKSPACE_ROOT/datafusion/core/tests/data/partitioned_csv/partition-1.csv], [WORKSPACE_ROOT/datafusion/core/tests/data/partitioned_csv/partition-0.csv], [WORKSPACE_ROOT/datafusion/core/tests/data/partitioned_csv/partition-2.csv], [WORKSPACE_ROOT/datafusion/core/tests/data/partitioned_csv/partition-3.csv]]}, has_header=false, limit=None, projection=[c1, c2]

query II
SELECT c1, c2 FROM test ORDER BY c1, c2, c1
----
Expand Down

0 comments on commit 551f257

Please sign in to comment.