Kimahriman commented on code in PR #13683:
URL: https://github.com/apache/datafusion/pull/13683#discussion_r1874582555
##########
datafusion/sqllogictest/test_files/array.slt:
##########
@@ -5260,6 +5270,13 @@ select array_has([], null),
----
NULL NULL NULL
+# If lhs is has any Nulls, we return Null instead of false
+query BB
+select array_has([1, null, 2], 3),
Review Comment:
Hmm DuckDB is different then Spark and Postgres then
```
spark-sql (default)> SELECT array_contains(array(1, NULL, 3), 4);
NULL
```
```
postgres=# SELECT 4 =ANY('{1, NULL, 3}');
?column?
----------
(1 row)
```
Was hoping to use this to implement `ArrayContains` for Comet, and this is
the one behavior difference.
--
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]