Skip to content

Commit 4a61c5c

Browse files
committed
add struct testcase
1 parent 5142293 commit 4a61c5c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,3 +418,23 @@ SELECT length(c1) FROM test
418418

419419
statement ok
420420
drop table test
421+
422+
statement ok
423+
CREATE EXTERNAL TABLE simple_struct_test (
424+
a INT,
425+
b INT,
426+
c INT
427+
)
428+
STORED AS CSV
429+
WITH HEADER ROW
430+
LOCATION './tests/data/example.csv'
431+
432+
# generic query length
433+
query ?
434+
SELECT struct(a,b,c) from simple_struct_test
435+
----
436+
{c0: 1, c1: 2, c2: 3}
437+
438+
statement ok
439+
drop table simple_struct_test
440+

0 commit comments

Comments
 (0)