HyukjinKwon commented on PR #60129:
URL: https://github.com/apache/spark/pull/60129#issuecomment-6673903827

   Thank you, @dongjoon-hyun. 46cfc3d addresses items 10 and 11 (replies in the 
threads), and the ANSI case of open item 1:
   
   - The predicates of a `SupportsPushDownV2Filters` builder now end at the 
first filter that the builder does not get, so that no predicate that may fail, 
such as `CAST(payload AS INT) > 0` with ANSI, runs before a filter written 
before it, as `payload RLIKE ...`. A new test drives `buildScan` with such a 
builder in both orders. The filters of a `SupportsPushDownFilters` builder 
compare columns with values, which cannot fail, so they keep the translated 
filters of the leading ones, as batch scans order their post-scan filters.
   - On item 3: the arm of `filtersOfScanBuilder` for `SupportsPushDownFilters` 
mirrors `pushFilters`, which also translates the nondeterministic filters for 
these builders (only its V2 arm partitions them), so I kept it as is. The 
streaming filters are all deterministic by then, since `pushableFilters` stops 
at the first one that is not. Sharing one check with `pushFilters` stays an 
open item.
   
   The pushdown, Python streaming, streaming and DSv2 suites pass locally.
   


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