2010YOUY01 commented on code in PR #23971:
URL: https://github.com/apache/datafusion/pull/23971#discussion_r3673033975


##########
datafusion/sqllogictest/test_files/array/array_length.slt:
##########
@@ -204,6 +204,52 @@ select list_distance([1, 2, 3], [1, 2, 3]) AS distance;
 ----
 0
 
+# array_distance with null outer arrays
+query RR
+select
+  array_distance(arrow_cast(NULL, 'List(Float64)'), [1, 2]),
+  array_distance([1, 2], arrow_cast(NULL, 'List(Float64)'));
+----
+NULL NULL
+
+# nested large-list inputs and nested nulls on either side

Review Comment:
   It should be a bug, array_distance() should only support 1-D array, 
multi-dimensional array distance should not be supported.
   
   I'll open a fix later.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to