viirya commented on code in PR #60692:
URL: https://github.com/apache/spark/pull/60692#discussion_r4622238578


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala:
##########
@@ -2629,15 +2629,10 @@ object CombineFilters extends Rule[LogicalPlan] with 
PredicateHelper {
     // Combining a condition written after a non-deterministic or throwable 
one evaluates it ahead
     // of that one, so it must also be unable to fail. `throwable` does not 
report e.g. a division
     // by zero in ANSI mode, which the condition before it may have kept from 
being evaluated.
-    // Nor may it read a column that can fail (see `failableOutput`).
+    // Nor may it read a column that can fail (see `splitMovable`).

Review Comment:
   Now that the split is delegated, the last four lines restate the 
`splitMovable` Scaladoc. The first two lines ("if and only if both are 
deterministic and the outer condition is not throwable") also describe the 
all-or-nothing combining from before SPARK-60980. Maybe replace the whole block 
with:
   
   ```scala
       // Combines the conjuncts of the outer condition that may be evaluated 
ahead of the others
       // (see `splitMovable`) into the inner filter, and keeps the rest in a 
filter above it. The
       // inner condition must be deterministic.
   ```



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