Skip to content

Commit

Permalink
add simple test
Browse files Browse the repository at this point in the history
  • Loading branch information
goldmedal committed Nov 27, 2024
1 parent d651064 commit 1862366
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions datafusion/sqllogictest/test_files/struct.slt
Original file line number Diff line number Diff line change
Expand Up @@ -595,3 +595,14 @@ Struct([Field { name: "r", data_type: Utf8, nullable: true, dict_id: 0, dict_is_

statement ok
drop table t;

statement ok
create table t(array_col array<struct(r varchar, c int)>) as values (array[row('a', 1), row('b', 2)]);

query TI
select array_col[1].r, array_col[1].c from t;
----
a 1

statement ok
drop table t;

0 comments on commit 1862366

Please sign in to comment.