comphead commented on code in PR #13683:
URL: https://github.com/apache/datafusion/pull/13683#discussion_r1874573459


##########
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:
   I'm not sure this is a correct behavior.
   
   Checking DuckDB
   
   ```
   D select array_has([1, null, 2], 3);
   ┌───────────────────────────────────────────┐
   │ array_has(main.list_value(1, NULL, 2), 3) │
   │                  boolean                  │
   ├───────────────────────────────────────────┤
   │ false                                     │
   └───────────────────────────────────────────┘
   ```
   



-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to