Skip to content

Commit

Permalink
add struct testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangzhx committed Jun 8, 2023
1 parent 5142293 commit 4a61c5c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions datafusion/core/tests/sqllogictests/test_files/functions.slt
Original file line number Diff line number Diff line change
Expand Up @@ -418,3 +418,23 @@ SELECT length(c1) FROM test

statement ok
drop table test

statement ok
CREATE EXTERNAL TABLE simple_struct_test (
a INT,
b INT,
c INT
)
STORED AS CSV
WITH HEADER ROW
LOCATION './tests/data/example.csv'

# generic query length
query ?
SELECT struct(a,b,c) from simple_struct_test
----
{c0: 1, c1: 2, c2: 3}

statement ok
drop table simple_struct_test

0 comments on commit 4a61c5c

Please sign in to comment.