Skip to content

Commit c1a4957

Browse files
authored
fix: SqlLogicTest on Windows (#15932)
1 parent e467644 commit c1a4957

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

datafusion/sqllogictest/test_files/listing_table_statistics.slt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
# Test file with different schema order but genenrating correct statistics for table
18+
# Test file with different schema order but generating correct statistics for table
1919
statement ok
20-
COPY (SELECT * FROM values (1, 'a'), (2, 'b') t(int_col, str_col)) to '/tmp/table/1.parquet';
20+
COPY (SELECT * FROM values (1, 'a'), (2, 'b') t(int_col, str_col)) to 'test_files/scratch/table/1.parquet';
2121

2222
statement ok
23-
COPY (SELECT * FROM values ('c', 3), ('d', -1) t(str_col, int_col)) to '/tmp/table/2.parquet';
23+
COPY (SELECT * FROM values ('c', 3), ('d', -1) t(str_col, int_col)) to 'test_files/scratch/table/2.parquet';
2424

2525
statement ok
2626
set datafusion.execution.collect_statistics = true;
@@ -29,13 +29,13 @@ statement ok
2929
set datafusion.explain.show_statistics = true;
3030

3131
statement ok
32-
create external table t stored as parquet location '/tmp/table';
32+
create external table t stored as parquet location 'test_files/scratch/table';
3333

3434
query TT
3535
explain format indent select * from t;
3636
----
3737
logical_plan TableScan: t projection=[int_col, str_col]
38-
physical_plan DataSourceExec: file_groups={2 groups: [[tmp/table/1.parquet], [tmp/table/2.parquet]]}, projection=[int_col, str_col], file_type=parquet, statistics=[Rows=Exact(4), Bytes=Exact(288), [(Col[0]: Min=Exact(Int64(-1)) Max=Exact(Int64(3)) Null=Exact(0)),(Col[1]: Min=Exact(Utf8View("a")) Max=Exact(Utf8View("d")) Null=Exact(0))]]
38+
physical_plan DataSourceExec: file_groups={2 groups: [[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/table/1.parquet], [WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/table/2.parquet]]}, projection=[int_col, str_col], file_type=parquet, statistics=[Rows=Exact(4), Bytes=Exact(288), [(Col[0]: Min=Exact(Int64(-1)) Max=Exact(Int64(3)) Null=Exact(0)),(Col[1]: Min=Exact(Utf8View("a")) Max=Exact(Utf8View("d")) Null=Exact(0))]]
3939

4040
statement ok
4141
drop table t;

0 commit comments

Comments
 (0)