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

   ### What changes were proposed in this pull request?
   
   This backports #55579 to branch-4.x. It adds DPP and scalar subquery pruning 
to built-in V2 file sources; see #55579 for the details.
   
   The cherry-pick of 9744a430bd1 needed these changes, since branch-4.x does 
not have SPARK-60465:
   
   - `DataSourceV2ScanRelation.onlyRowWisePushdowns`, which `PartitionPruning` 
reads, comes with this PR. `V2ScanRelationPushDown` sets it as on master, false 
for a scan with a pushed limit, offset, top-N, sample, aggregate or join, and 
`MergeSubplansSuite`'s fixtures set it as on master.
   - `BatchScanExec.verboseStringWithOperatorId` prints only the 
`RuntimeFilters` line, without `StorageFilters`.
   - The change to `StorageFilterTestSource`, which branch-4.x does not have, 
is dropped.
   
   ### Why are the changes needed?
   
   A partitioned V2 file source reads every partition for a join or a subquery 
that selects a few of them. V1 has had DPP since 3.0.0.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, as listed in #55579, except for the bloom filter, since branch-4.x does 
not have SPARK-60702. On a shuffle join with no broadcast to reuse, the DPP 
filter becomes `true` and `InjectRuntimeFilter` adds no bloom filter on that 
key, as in V1, where a V2 file fact could get one before. Nor does the 
unpartitioned V2 file branch of a union under such a DPP filter get one. 
Results are the same.
   
   ### How was this patch tested?
   
   The tests of #55579.
   
   ### 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