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

   Thank you for the review and the approval, @dongjoon-hyun. As planned, 
please hold off merging this PR until SPARK-60731, SPARK-61377, SPARK-61378 and 
SPARK-61354 are in; I will rebase it on them first.
   
   1. Done: the title now says "below a projection", and the first paragraph of 
the description says that only the `Filter` over `Project` case is changed: 
below an `Aggregate`, a `Window`, a `Generate` or a join, a deterministic 
condition that can fail but is not throwable is still pushed (SPARK-61375 is to 
look at the `Aggregate` and `Window` cases), and so is one written after a 
condition over an alias that is only expensive through scalar Python UDFs 
(SPARK-61374).
   2. Right: at level 0 a component is only kept when it is not cheap, which 
raises the level, so `keptAfterFirst` is always `kept.result().drop(1)`. Its 
only reader is `keepsWrittenOrder`, which SPARK-60731 is to change, so when I 
rebase this PR onto those PRs, I will either remove it together with 
`keepsWrittenOrder` or use `expensiveWithUsed.drop(1)` as you suggest.
   3. Right: under the legacy config, levels 1 and 2 both push a cheap 
component exactly when it is not throwable, and `keepsWrittenOrder` is `false`, 
so `firstHeldIndex` only costs the `evaluatedHere` calls. I will skip it under 
the legacy config, and compute `isCheap(used)` once per component, also in that 
rebase.
   
   I applied items 2 and 3 on top of a7bdc5b88d2 locally: the catalyst 
`FilterPushdownSuite` passes with ANSI mode on and off, and `ExprUtilsSuite` 
with it on. I left them for the rebase to avoid a CI round on a head that is 
about to be rebased.
   


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