sarutak commented on PR #60516:
URL: https://github.com/apache/spark/pull/60516#issuecomment-6924758816

   On the review summary (columns that cannot fail, such as `upper(s)`): With 
the changes above, an equality over such a column is propagated in place as on 
4.3.0, so no full scan is left, and an operand before one over it is rewritten 
as on master, e.g. with ANSI off, `(id < 3 OR u > 'A') AND id = 7`, with `u` 
the alias `upper(s)` and the filter kept above the projection, becomes `id = 7 
AND u > 'A'`. But such an equality is propagated in place and not moved, as on 
4.3.0, so the SPARK-60983 cases come back for it, and a conjunct before it 
still runs on the rows that it drops, e.g. `length(u) > 0 AND 10 / id > 0 AND u 
= 'X'` evaluates the division on every row and, with ANSI mode on, fails with 
`DIVIDE_BY_ZERO` where `id` is 0, as on 4.3.0, while master moves `u = 'X'` 
first. The description says so.
   
   On the description suggestion (the SPARK-61377 item): Removed it from the 
description.


-- 
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]

Reply via email to