Skip to content

Commit ca5b0fb

Browse files
committed
fix flaky test limit.test
1 parent 1545f2d commit ca5b0fb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

datafusion/sqllogictest/test_files/limit.slt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ explain select * from testSubQueryLimit as t1 join (select * from testSubQueryLi
734734
----
735735
logical_plan
736736
01)Limit: skip=0, fetch=10
737-
02)--Cross Join:
737+
02)--Cross Join:
738738
03)----SubqueryAlias: t1
739739
04)------Limit: skip=0, fetch=10
740740
05)--------TableScan: testsubquerylimit projection=[a, b], fetch=10
@@ -759,7 +759,7 @@ explain select * from testSubQueryLimit as t1 join (select * from testSubQueryLi
759759
----
760760
logical_plan
761761
01)Limit: skip=0, fetch=2
762-
02)--Cross Join:
762+
02)--Cross Join:
763763
03)----SubqueryAlias: t1
764764
04)------Limit: skip=0, fetch=2
765765
05)--------TableScan: testsubquerylimit projection=[a, b], fetch=2
@@ -830,6 +830,9 @@ CREATE EXTERNAL TABLE test_limit_with_partitions
830830
STORED AS PARQUET
831831
LOCATION 'test_files/scratch/parquet/test_limit_with_partitions/';
832832

833+
statement ok
834+
set datafusion.explain.logical_plan_only = true;
835+
833836
query TT
834837
explain
835838
with selection as (
@@ -849,12 +852,9 @@ logical_plan
849852
04)------SubqueryAlias: selection
850853
05)--------Limit: skip=0, fetch=1
851854
06)----------TableScan: test_limit_with_partitions projection=[part_key], fetch=1
852-
physical_plan
853-
01)ProjectionExec: expr=[foo@0 as foo]
854-
02)--SortExec: TopK(fetch=1000), expr=[part_key@1 ASC NULLS LAST], preserve_partitioning=[false]
855-
03)----ProjectionExec: expr=[1 as foo, part_key@0 as part_key]
856-
04)------CoalescePartitionsExec: fetch=1
857-
05)--------DataSourceExec: file_groups={3 groups: [[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/parquet/test_limit_with_partitions/part-2.parquet:0..265], [WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/parquet/test_limit_with_partitions/part-2.parquet:265..530], [WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/parquet/test_limit_with_partitions/part-2.parquet:530..794]]}, projection=[part_key], limit=1, file_type=parquet
855+
856+
statement ok
857+
set datafusion.explain.logical_plan_only = false;
858858

859859
query I
860860
with selection as (

0 commit comments

Comments
 (0)