Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuqi-lucas committed Jan 2, 2025
1 parent 889fdf1 commit 30d5954
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions datafusion/sqllogictest/test_files/copy.slt
Original file line number Diff line number Diff line change
Expand Up @@ -641,10 +641,10 @@ statement ok
create table unsorted_source_table(col1 integer, col2 varchar) as values (8, 'Done'), (1, 'Foo'), (8, 'Cat'), (2, 'Bar');

query TT
EXPLAIN COPY (select * from unsorted_source_table order by col1, col2) to 'test_files/scratch/copy/sortTable/' STORED AS PARQUET
EXPLAIN COPY (select * from unsorted_source_table order by col1, col2) to 'test_files/scratch/copy/sortTable/sorted.parquet' STORED AS PARQUET
----
logical_plan
01)CopyTo: format=parquet output_url=test_files/scratch/copy/sortTable/ options: ()
01)CopyTo: format=parquet output_url=test_files/scratch/copy/sortTable/sorted.parquet options: ()
02)--Sort: unsorted_source_table.col1 ASC NULLS LAST, unsorted_source_table.col2 ASC NULLS LAST
03)----TableScan: unsorted_source_table projection=[col1, col2]
physical_plan
Expand All @@ -653,7 +653,7 @@ physical_plan
03)----MemoryExec: partitions=1, partition_sizes=[1]

query I
COPY (select * from unsorted_source_table order by col1, col2) to 'test_files/scratch/copy/sortTable/' STORED AS PARQUET
COPY (select * from unsorted_source_table order by col1, col2) to 'test_files/scratch/copy/sortTable/sorted.parquet' STORED AS PARQUET
----
4

Expand All @@ -665,7 +665,7 @@ query TT
explain select * from sortedParquetTable;
----
logical_plan TableScan: sortedparquettable projection=[col1, col2]
physical_plan ParquetExec: file_groups={1 group: [[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/copy/sortTable/uEHRseUMiFeVfsQk_0.parquet]]}, projection=[col1, col2], output_ordering=[col1@0 ASC NULLS LAST, col2@1 ASC NULLS LAST]
physical_plan ParquetExec: file_groups={1 group: [[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/copy/sortTable/sorted.parquet]]}, projection=[col1, col2], output_ordering=[col1@0 ASC NULLS LAST, col2@1 ASC NULLS LAST]


query IT
Expand Down

0 comments on commit 30d5954

Please sign in to comment.