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

   ## What changes are proposed in this pull request?
   
   On Spark 3.4 to 4.1, `BatchScanExecShim` kept its own copy of 
`filteredPartitions` next to the one in `AbstractBatchScanExec`, Gluten's copy 
of Spark's `BatchScanExec`. The 3.4/3.5 copies missed SPARK-45652: they call 
`groupPartitions(newPartitions).get`, so a storage-partitioned join fails with 
`None.get` when a runtime filter removes every partition (see the issue).
   
   The shim now uses the `AbstractBatchScanExec` member, made `protected`, and 
its copy is removed. The two copies only differed in that line (and a blank 
line on 4.0/4.1). The Spark 4.2 shim is unchanged: it groups splits 
differently, tracked in #13139.
   
   This reproduces on v1.8.0-rc1 and v1.7.0, so it isn't a 1.8 regression.
   
   Fixes #ISSUE.
   
   ## How was this patch tested?
   
   Added a test to `IcebergSuite`: a bucketed join whose dynamic filter removes 
every partition of the key-grouped side, with `pushPartValues` and partially 
clustered distribution on and off. It checks the result and that the filtered 
scan is offloaded and key grouped, and fails with `None.get` without the fix.
   
   ## Was this patch authored or co-authored using generative AI tooling?
   
   Yes. Generated-by: Claude Opus.
   


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