Skip to content

Commit b718aa6

Browse files
committed
Add a test for result type of Concatenating Mixed types
1 parent 2a34499 commit b718aa6

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

datafusion/sqllogictest/test_files/array.slt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3096,13 +3096,12 @@ select array_concat(
30963096
[1, 2, 3]
30973097

30983098
# Concatenating Mixed types
3099-
query ?
3100-
select array_concat(
3101-
[arrow_cast('1', 'Utf8'), arrow_cast('2', 'Utf8')],
3102-
[arrow_cast('3', 'Utf8View')]
3103-
);
3099+
query ?T
3100+
select
3101+
array_concat([arrow_cast('1', 'Utf8'), arrow_cast('2', 'Utf8')], [arrow_cast('3', 'Utf8View')]),
3102+
arrow_typeof(array_concat([arrow_cast('1', 'Utf8'), arrow_cast('2', 'Utf8')], [arrow_cast('3', 'Utf8View')]));
31043103
----
3105-
[1, 2, 3]
3104+
[1, 2, 3] List(Field { name: "item", data_type: Utf8View, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} })
31063105

31073106
# array_concat error
31083107
query error DataFusion error: Error during planning: Execution error: Function 'array_concat' user-defined coercion failed with "Error during planning: array_concat does not support an argument of type Int64"

0 commit comments

Comments
 (0)