sarutak commented on PR #60337: URL: https://github.com/apache/spark/pull/60337#issuecomment-6878837039
Thank you, @dongjoon-hyun. I opened #60498 (SPARK-61704) for the NULL-literal part, resolved SPARK-61354 as Won't Fix as discussed above, and am closing this PR. #60498 stops propagating an `EqualTo` with a NULL literal only under a `NOT`, which is where it gives wrong rows. Outside a `NOT`, a NULL result counts as FALSE, so propagating it gives the right rows, and an earlier draft that did not propagate it there made `10 / (a - b) > 0 AND a = typedLit(null)` over `(a, b) = (1, 1), (2, 1)` fail with `DIVIDE_BY_ZERO`, with `NullPropagation` excluded and ANSI mode on, where master returns no row. Under a `NOT`, a conjunct next to such an equality now runs as it does with the default rules, so with `NullPropagation` excluded it can fail where master folded it away, e.g. with `DIVIDE_BY_ZERO`; its description has the details. -- 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]
