array_has
has inconsistent null handling for scalars and arrays
#13682
Labels
bug
Something isn't working
Describe the bug
array_has
handles nulls differently for scalars and arrays. Scalars return null if all the left hand side values are null, while arrays don't care what values in the left hand side are null. Additionally, other systems like Spark and Postgres have different null behavior, such that if at least one element of the left hand side is null, return null instead of false. I can't find any definitive SQL standard for this, but it might be good to behave consistent with those other systems.To Reproduce
Expected behavior
These queries return the same results.
Additional context
No response
The text was updated successfully, but these errors were encountered: