Repository navigation
[GLUTEN-13719][VL] Fix None.get in a storage-partitioned join whose runtime filter removes every partition - #13725
Open
LuciferYang wants to merge 3 commits into
Open
LuciferYang wants to merge 3 commits into
LuciferYang wants to merge 3 commits into
Conversation
|
Run Gluten Clickhouse CI on x86 |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes are proposed in this pull request?
On Spark 3.4 to 4.1,
BatchScanExecShimkept its own copy offilteredPartitionsnext to the one inAbstractBatchScanExec, Gluten's copy of Spark'sBatchScanExec. The 3.4/3.5 copies missed SPARK-45652: they callgroupPartitions(newPartitions).get, so a storage-partitioned join fails withNone.getwhen a runtime filter removes every partition (see the issue).The shim now uses the
AbstractBatchScanExecmember, madeprotected, 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, withpushPartValuesand partially clustered distribution on and off. It checks the result and that the filtered scan is offloaded and key grouped, and fails withNone.getwithout the fix.Was this patch authored or co-authored using generative AI tooling?
Yes. Generated-by: Claude Opus.
Related issue: #13719