diff --git a/datafusion/core/tests/sqllogictests/test_files/functions.slt b/datafusion/core/tests/sqllogictests/test_files/functions.slt index 0cb54711cfbd..b52dca577067 100644 --- a/datafusion/core/tests/sqllogictests/test_files/functions.slt +++ b/datafusion/core/tests/sqllogictests/test_files/functions.slt @@ -458,3 +458,25 @@ SELECT v1, v2, ROWNUMBER() OVER(ORDER BY v1) from test; statement ok drop table test + +# Scalar function struct +statement ok +create table simple_struct_test ( + c1 boolean, + c2 INT, + c3 FLOAT, + c4 DOUBLE, + a VARCHAR, + b TEXT +) as select * +from (values + (true, 1,3.1,3.14,'str','text') +); + +query ? +SELECT struct(c1,c2,c3,c4,a,b) from simple_struct_test +---- +{c0: 1, c1: 1, c2: 3.1, c3: 3.14, c4: str, c5: text} + +statement ok +drop table simple_struct_test \ No newline at end of file