15
15
# specific language governing permissions and limitations
16
16
# under the License.
17
17
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
19
19
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';
21
21
22
22
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';
24
24
25
25
statement ok
26
26
set datafusion.execution.collect_statistics = true;
@@ -29,13 +29,13 @@ statement ok
29
29
set datafusion.explain.show_statistics = true;
30
30
31
31
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';
33
33
34
34
query TT
35
35
explain format indent select * from t;
36
36
----
37
37
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))]]
39
39
40
40
statement ok
41
41
drop table t;
0 commit comments