You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: datafusion/sqllogictest/test_files/array.slt
+30Lines changed: 30 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2265,6 +2265,36 @@ select array_sort([]);
2265
2265
----
2266
2266
[]
2267
2267
2268
+
# test with null arguments
2269
+
query error
2270
+
select array_sort(NULL);
2271
+
----
2272
+
DataFusion error: Error during planning: Failed to coerce arguments to satisfy a call to 'array_sort' function: coercion from [Null] to the signature OneOf([ArraySignature(Array { arguments: [Array], array_coercion: None }), ArraySignature(Array { arguments: [Array, DataType(Utf8)], array_coercion: None }), ArraySignature(Array { arguments: [Array, DataType(Utf8), DataType(Utf8)], array_coercion: None })]) failed No function matches the given name and argument types 'array_sort(Null)'. You might need to add explicit type casts.
0 commit comments