Skip to content

Commit f99f50d

Browse files
U0001F3A2claude
andcommitted
test: update order.slt plans for log() float widening
c11 is Float32 and c12 is Float64, so log() now widens c11 to Float64 during coercion. The sorts are still kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 366c830 commit f99f50d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎datafusion/sqllogictest/test_files/order.slt‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -957,12 +957,12 @@ query TT
957957
----
958958
logical_plan
959959
01)Sort: log_c11_base_c12 ASC NULLS LAST
960-
02)--Projection: log(aggregate_test_100.c12, aggregate_test_100.c11) AS log_c11_base_c12
960+
02)--Projection: log(aggregate_test_100.c12, CAST(aggregate_test_100.c11 AS Float64)) AS log_c11_base_c12
961961
03)----TableScan: aggregate_test_100 projection=[c11, c12]
962962
physical_plan
963963
01)SortPreservingMergeExec: [log_c11_base_c12@0 ASC NULLS LAST]
964964
02)--SortExec: expr=[log_c11_base_c12@0 ASC NULLS LAST], preserve_partitioning=[true]
965-
03)----ProjectionExec: expr=[log(c12@1, c11@0) as log_c11_base_c12]
965+
03)----ProjectionExec: expr=[log(c12@1, CAST(c11@0 AS Float64)) as log_c11_base_c12]
966966
04)------RepartitionExec: partitioning=RoundRobinBatch(4), input_partitions=1, maintains_sort_order=true
967967
05)--------DataSourceExec: 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]], file_type=csv, has_header=true
968968

@@ -973,12 +973,12 @@ ORDER BY log_c12_base_c11 DESC NULLS LAST;
973973
----
974974
logical_plan
975975
01)Sort: log_c12_base_c11 DESC NULLS LAST
976-
02)--Projection: log(aggregate_test_100.c11, aggregate_test_100.c12) AS log_c12_base_c11
976+
02)--Projection: log(CAST(aggregate_test_100.c11 AS Float64), aggregate_test_100.c12) AS log_c12_base_c11
977977
03)----TableScan: aggregate_test_100 projection=[c11, c12]
978978
physical_plan
979979
01)SortPreservingMergeExec: [log_c12_base_c11@0 DESC NULLS LAST]
980980
02)--SortExec: expr=[log_c12_base_c11@0 DESC NULLS LAST], preserve_partitioning=[true]
981-
03)----ProjectionExec: expr=[log(c11@0, c12@1) as log_c12_base_c11]
981+
03)----ProjectionExec: expr=[log(CAST(c11@0 AS Float64), c12@1) as log_c12_base_c11]
982982
04)------RepartitionExec: partitioning=RoundRobinBatch(4), input_partitions=1, maintains_sort_order=true
983983
05)--------DataSourceExec: 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]], file_type=csv, has_header=true
984984

0 commit comments

Comments
 (0)