Apache DataFusion SQL Query Engine
fix: SqlLogicTest on Windows (#15932)
Nuno Fariac1a4957f6e4a
diff --git a/datafusion/sqllogictest/test_files/listing_table_statistics.slt b/datafusion/sqllogictest/test_files/listing_table_statistics.sltindex 8efe5f0d9a..890d1f2e92 100644--- a/datafusion/sqllogictest/test_files/listing_table_statistics.slt+++ b/datafusion/sqllogictest/test_files/listing_table_statistics.slt@@ -15,12 +15,12 @@# specific language governing permissions and limitations# under the License.-# Test file with different schema order but genenrating correct statistics for table+# Test file with different schema order but generating correct statistics for tablestatement ok-COPY (SELECT * FROM values (1, 'a'), (2, 'b') t(int_col, str_col)) to '/tmp/table/1.parquet';+COPY (SELECT * FROM values (1, 'a'), (2, 'b') t(int_col, str_col)) to 'test_files/scratch/table/1.parquet';statement ok-COPY (SELECT * FROM values ('c', 3), ('d', -1) t(str_col, int_col)) to '/tmp/table/2.parquet';+COPY (SELECT * FROM values ('c', 3), ('d', -1) t(str_col, int_col)) to 'test_files/scratch/table/2.parquet';statement okset datafusion.execution.collect_statistics = true;@@ -29,13 +29,13 @@ statement okset datafusion.explain.show_statistics = true;statement ok-create external table t stored as parquet location '/tmp/table';+create external table t stored as parquet location 'test_files/scratch/table';query TTexplain format indent select * from t;----logical_plan TableScan: t projection=[int_col, str_col]-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))]]+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))]]statement okdrop table t;