tustvold opened a new issue, #3589: URL: https://github.com/apache/arrow-rs/issues/3589
**Describe the bug** <!-- A clear and concise description of what the bug is. --> SQL NULLIF returns `NULL` if the predicate evaluates to `NULL`. i.e. ``` > SELECT NULLIF(NULL, 1) NULL ``` 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** <!-- Steps to reproduce the behavior: --> **Expected behavior** <!-- A clear and concise description of what you expected to happen. --> 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** <!-- Add any other context about the problem here. --> -- 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]
