Skip to content

Commit 29d799c

Browse files
committed
test: demonstrate new test case failure, after merging main
1 parent 06961b1 commit 29d799c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

datafusion/sqllogictest/test_files/union_by_name.slt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,13 +244,14 @@ SELECT x, y FROM t1 UNION BY NAME (SELECT y, z FROM t2 INTERSECT SELECT 2, 2 as
244244
3 3 NULL
245245
NULL 2 2
246246

247-
query III
247+
# TODO: Test regression on a new feature, with the same SanityCheckPlan failures as currently existing for this feature.
248+
query error
248249
SELECT x, y FROM t1 UNION ALL BY NAME (SELECT y, z FROM t2 INTERSECT SELECT 2, 2 as two FROM t1 ORDER BY 1) ORDER BY 1;
249250
----
250-
1 1 NULL
251-
3 3 NULL
252-
3 3 NULL
253-
NULL 2 2
251+
DataFusion error: SanityCheckPlan
252+
caused by
253+
Error during planning: Plan: ["SortPreservingMergeExec: [x@0 ASC NULLS LAST]", " UnionExec", " SortExec: expr=[x@0 ASC NULLS LAST], preserve_partitioning=[false]", " ProjectionExec: expr=[x@0 as x, y@1 as y, NULL as z]", " DataSourceExec: partitions=1, partition_sizes=[1]", " ProjectionExec: expr=[NULL as x, y@0 as y, z@1 as z]", " CoalescePartitionsExec", " CoalesceBatchesExec: target_batch_size=8192", " HashJoinExec: mode=Partitioned, join_type=LeftSemi, on=[(CAST(t2.y AS Int64)@3, Int64(2)@0), (CAST(t2.z AS Int64)@2, two@1)], projection=[y@0, z@1]", " CoalesceBatchesExec: target_batch_size=8192", " RepartitionExec: partitioning=Hash([CAST(t2.y AS Int64)@3, CAST(t2.z AS Int64)@2], 4), input_partitions=4", " ProjectionExec: expr=[y@0 as y, z@1 as z, CAST(z@1 AS Int64) as CAST(t2.z AS Int64), CAST(y@0 AS Int64) as CAST(t2.y AS Int64)]", " AggregateExec: mode=FinalPartitioned, gby=[y@0 as y, z@1 as z], aggr=[]", " CoalesceBatchesExec: target_batch_size=8192", " RepartitionExec: partitioning=Hash([y@0, z@1], 4), input_partitions=4", " RepartitionExec: partitioning=RoundRobinBatch(4), input_partitions=1", " AggregateExec: mode=Partial, gby=[y@0 as y, z@1 as z], aggr=[]", " DataSourceExec: partitions=1, partition_sizes=[1]", " CoalesceBatchesExec: target_batch_size=8192", " RepartitionExec: partitioning=Hash([Int64(2)@0, two@1], 4), input_partitions=1", " ProjectionExec: expr=[2 as Int64(2), 2 as two]", " DataSourceExec: partitions=1, partition_sizes=[1]"] does not satisfy order requirements: [x@0 ASC NULLS LAST]. Child-0 order: []
254+
254255

255256
query III
256257
(SELECT x, y FROM t1 UNION BY NAME SELECT y, z FROM t2 ORDER BY 1) EXCEPT SELECT NULL, 2, 2 as two FROM t1 ORDER BY 1;

0 commit comments

Comments
 (0)