jayzhan211 commented on code in PR #12125:
URL: https://github.com/apache/datafusion/pull/12125#discussion_r1729948949


##########
datafusion/sqllogictest/test_files/array.slt:
##########
@@ -4972,11 +4972,19 @@ NULL 1 1
 
 ## array_has/array_has_all/array_has_any
 
-query BB
+# If lhs is empty, return false
+query B
+select array_has([], 1);
+----
+false
+
+# If rhs is Null, we returns Null
+query BBB
 select array_has([], null),
-       array_has([1, 2, 3], null);
+       array_has([1, 2, 3], null),
+       array_has([null, 1], null);
 ----
-false false
+NULL NULL NULL
 
 #TODO: array_has_all and array_has_any cannot handle NULL

Review Comment:
   
https://github.com/apache/datafusion/blob/a58416c2eae47d19f0ef4756768f1e978d7c7dd3/datafusion/sqllogictest/test_files/array.slt#L5041-L5057



-- 
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