LuciferYang opened a new pull request, #60788:
URL: https://github.com/apache/spark/pull/60788

   ### What changes were proposed in this pull request?
   
   This backports #60672 to branch-4.x. `InjectRuntimeFilter` takes a DSv2 scan 
as the creation side of a runtime bloom filter only if reading the scan again 
returns the same rows (`DataSourceV2ScanRelation.isRepeatableRead`); see #60672 
for the details.
   
   The cherry-pick of 38ad7056e1f needed these changes, since branch-4.x does 
not have SPARK-60465:
   
   - The doc of `onlyRowWisePushdowns` keeps branch-4.x's wording, which 
mentions `PartitionPruning` instead of storage filters.
   - The changes to `StorageFilterPushDownSuite`, which branch-4.x does not 
have, are dropped. One of them was a test that a variant-extraction scan with a 
pushed limit or sample is not repeatable.
   - The SPARK-60702 test in `InjectRuntimeFilterSuite` uses a pushed sample on 
branch-4.x instead of a pushed top-N. It gets the same change as on master: no 
bloom filter on `p.f5` without DPP either.
   
   ### Why are the changes needed?
   
   Wrong results, as described in #60672: a bloom filter built from another 
read of a scan with a pushed `LIMIT` than the join's read can drop fact rows 
that the join matches.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, as listed in #60672. The SQL migration guide note is in the "Upgrading 
from Spark SQL 4.3 to 4.4" section, as on master.
   
   ### How was this patch tested?
   
   The tests of #60672, except those in `StorageFilterPushDownSuite`.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Opus 5.5)
   


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