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

   Thanks for the re-review. I pushed 8f599fdfd83, which addresses the three 
findings; replies are inline. I also added `InjectRuntimeFilter` to the callers 
in the description: its `cannotFail` builds on `canEvaluateUnconditionally` 
since SPARK-60702, so a runtime bloom filter can now be added for more keys and 
creation sides, e.g. `f5 - 1` with ANSI mode off, which a new test in 
`InjectRuntimeFilterSuite` covers, for a key and for a creation side.
   
   On the cost trade-offs, also for `CombineFilters`, which moves a conjunct 
that can not fail into the filter below as SPARK-60980 intends, my answer is 
the same as in 
https://github.com/apache/spark/pull/60119#issuecomment-6654507423 and 
https://github.com/apache/spark/pull/60119#issuecomment-6679140888: this PR 
only changes which expressions count as unable to fail, and each optimization 
keeps the cost policy it already applies to plain columns. If one of them turns 
out to cost too much for some expressions, such as a string search under an ICU 
collation, I think it should be limited inside that optimization, in a separate 
change.


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