Skip to content

Commit 372ba95

Browse files
committed
change location
1 parent 87fe413 commit 372ba95

File tree

2 files changed

+28
-46
lines changed

2 files changed

+28
-46
lines changed

datafusion/sqllogictest/test_files/create_table.slt

Lines changed: 0 additions & 46 deletions
This file was deleted.

datafusion/sqllogictest/test_files/ddl.slt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -840,3 +840,31 @@ DROP TABLE t1;
840840

841841
statement ok
842842
DROP TABLE t2;
843+
844+
# Test memory table fields with correct nullable
845+
statement ok
846+
CREATE or replace TABLE table_with_pk (
847+
sn INT PRIMARY KEY NOT NULL,
848+
ts TIMESTAMP WITH TIME ZONE NOT NULL,
849+
currency VARCHAR(3) NOT NULL,
850+
amount FLOAT
851+
) as VALUES
852+
(0, '2022-01-01 06:00:00Z'::timestamp, 'EUR', 30.0),
853+
(1, '2022-01-01 08:00:00Z'::timestamp, 'EUR', 50.0),
854+
(2, '2022-01-01 11:30:00Z'::timestamp, 'TRY', 75.0),
855+
(3, '2022-01-02 12:00:00Z'::timestamp, 'EUR', 200.0);
856+
857+
query TTTTTT
858+
show columns FROM table_with_pk;
859+
----
860+
datafusion public table_with_pk sn Int32 NO
861+
datafusion public table_with_pk ts Timestamp(Nanosecond, Some("+00:00")) NO
862+
datafusion public table_with_pk currency Utf8 NO
863+
datafusion public table_with_pk amount Float32 YES
864+
865+
statement ok
866+
drop table table_with_pk;
867+
868+
statement ok
869+
set datafusion.catalog.information_schema = false;
870+

0 commit comments

Comments
 (0)