Nullif of NULL Predicate is not NULL #3589
Labels
bug
development-process
Related to development process of arrow-rs
question
Further information is requested
Describe the bug
SQL NULLIF returns
NULL
if the predicate evaluates toNULL
.i.e.
Whereas the
nullif
kernel in arrow preserves the nullability of the input.This appears to date from the initial implementation of this kernel in https://github.com/apache/arrow/pull/8688/files#diff-d3f27fc6d1b5bf9dcc0eec10fb37f9f13e9dcdf5f608b932d0e0c0151a06b91aR253 by @velvia
To Reproduce
Expected behavior
I'm not really sure, I think it is surprising that we break SQL compatibility in this way, but we have been doing so for a while so I'm not sure if this is intentional or just nobody has noticed.
Additional context
The text was updated successfully, but these errors were encountered: