@@ -519,7 +519,7 @@ CREATE EXTERNAL TABLE aggregate_test_100 (
519519)
520520STORED AS CSV
521521WITH ORDER(c11)
522- WITH ORDER(c12 DESC)
522+ WITH ORDER(c12 DESC NULLS LAST )
523523LOCATION '../../testing/data/csv/aggregate_test_100.csv'
524524OPTIONS ('format.has_header' 'true');
525525
@@ -566,22 +566,22 @@ physical_plan
56656601)SortPreservingMergeExec: [log_c11_base_c12@0 ASC NULLS LAST]
56756702)--ProjectionExec: expr=[log(c12@1, CAST(c11@0 AS Float64)) as log_c11_base_c12]
56856803)----RepartitionExec: partitioning=RoundRobinBatch(4), input_partitions=1
569- 04)------CsvExec: file_groups={1 group: [[WORKSPACE_ROOT/testing/data/csv/aggregate_test_100.csv]]}, projection=[c11, c12], output_orderings=[[c11@0 ASC NULLS LAST], [c12@1 DESC]], has_header=true
569+ 04)------CsvExec: file_groups={1 group: [[WORKSPACE_ROOT/testing/data/csv/aggregate_test_100.csv]]}, projection=[c11, c12], output_orderings=[[c11@0 ASC NULLS LAST], [c12@1 DESC NULLS LAST ]], has_header=true
570570
571571query TT
572572EXPLAIN SELECT LOG(c11, c12) as log_c12_base_c11
573573FROM aggregate_test_100
574- ORDER BY log_c12_base_c11 DESC;
574+ ORDER BY log_c12_base_c11 DESC NULLS LAST ;
575575----
576576logical_plan
577- 01)Sort: log_c12_base_c11 DESC NULLS FIRST
577+ 01)Sort: log_c12_base_c11 DESC NULLS LAST
57857802)--Projection: log(CAST(aggregate_test_100.c11 AS Float64), aggregate_test_100.c12) AS log_c12_base_c11
57957903)----TableScan: aggregate_test_100 projection=[c11, c12]
580580physical_plan
581- 01)SortPreservingMergeExec: [log_c12_base_c11@0 DESC]
581+ 01)SortPreservingMergeExec: [log_c12_base_c11@0 DESC NULLS LAST ]
58258202)--ProjectionExec: expr=[log(CAST(c11@0 AS Float64), c12@1) as log_c12_base_c11]
58358303)----RepartitionExec: partitioning=RoundRobinBatch(4), input_partitions=1
584- 04)------CsvExec: file_groups={1 group: [[WORKSPACE_ROOT/testing/data/csv/aggregate_test_100.csv]]}, projection=[c11, c12], output_orderings=[[c11@0 ASC NULLS LAST], [c12@1 DESC]], has_header=true
584+ 04)------CsvExec: file_groups={1 group: [[WORKSPACE_ROOT/testing/data/csv/aggregate_test_100.csv]]}, projection=[c11, c12], output_orderings=[[c11@0 ASC NULLS LAST], [c12@1 DESC NULLS LAST ]], has_header=true
585585
586586statement ok
587587drop table aggregate_test_100;
0 commit comments