File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
datafusion/sqllogictest/test_files Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -490,20 +490,28 @@ DROP TABLE csv_with_timestamps
490490
491491statement ok
492492CREATE EXTERNAL TABLE csv_with_timestamps (
493- name VARCHAR,
494- ts TIMESTAMP,
495493 c_date DATE,
494+ name VARCHAR,
495+ ts TIMESTAMP
496496)
497497STORED AS CSV
498498PARTITIONED BY (c_date)
499499LOCATION '../core/tests/data/partitioned_table';
500500
501+ # select wildcard always returns partition columns as the last ones
501502query TPD
502503SELECT * from csv_with_timestamps where c_date='2018-11-13'
503504----
504505Jorge 2018-12-13T12:12:10.011 2018-11-13
505506Andrew 2018-11-13T17:11:10.011 2018-11-13
506507
508+ # select all fields explicitly
509+ query DTP
510+ SELECT c_date, name, ts from csv_with_timestamps where c_date='2018-11-13'
511+ ----
512+ 2018-11-13 Jorge 2018-12-13T12:12:10.011
513+ 2018-11-13 Andrew 2018-11-13T17:11:10.011
514+
507515statement ok
508516DROP TABLE csv_with_timestamps
509517
You can’t perform that action at this time.
0 commit comments