Skip to content

Commit 2ba5351

Browse files
committed
add struct testcase
1 parent 5228bb3 commit 2ba5351

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

datafusion/core/tests/sqllogictests/test_files/functions.slt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,3 +458,24 @@ SELECT v1, v2, ROWNUMBER() OVER(ORDER BY v1) from test;
458458

459459
statement ok
460460
drop table test
461+
462+
statement ok
463+
CREATE EXTERNAL TABLE simple_struct_test (
464+
a INT,
465+
b INT,
466+
c INT
467+
)
468+
STORED AS CSV
469+
WITH HEADER ROW
470+
LOCATION './tests/data/example.csv'
471+
472+
# generic query length
473+
query ?
474+
SELECT struct(a,b,c) from simple_struct_test
475+
----
476+
{c0: 1, c1: 2, c2: 3}
477+
478+
statement ok
479+
drop table simple_struct_test
480+
481+

0 commit comments

Comments
 (0)