devin-petersohn opened a new pull request, #54456: URL: https://github.com/apache/spark/pull/54456
### What changes were proposed in this pull request? Move the `_should_return_all_false` type-mismatch check outside the ANSI mode guard in `DataTypeOps.eq/ne` and `NumericOps.eq/ne` so it runs regardless of `spark.sql.ansi.enabled`. ### Why are the changes needed? It is a bug, boolean vs string comparison doesn't match pandas behavior when ANSI mode is off. ### Does this PR introduce _any_ user-facing change? Yes, fix the bug ### How was this patch tested? CI ### Was this patch authored or co-authored using generative AI tooling? Co-authored-by: Claude Opus 4 -- 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]
