Skip to content

Commit 6a3cd08

Browse files
committed
test: improve array_concat SQL coverage
1 parent 02a902c commit 6a3cd08

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

datafusion/sqllogictest/test_files/array/array_concat.slt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ include ./init_data.slt.part
1919

2020
## array_concat (aliases: `array_cat`, `list_concat`, `list_cat`)
2121

22+
# All-untyped NULL arguments preserve the Null return type
23+
query ?T
24+
select array_concat(NULL, NULL), arrow_typeof(array_concat(NULL, NULL));
25+
----
26+
NULL Null
27+
28+
query error DataFusion error:
29+
select array_concat();
30+
2231
# test with empty array
2332
query ?
2433
select array_concat([]);

0 commit comments

Comments
 (0)