Skip to content

[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
apache:mainfrom
LuciferYang:vl18-h1-spj-empty-runtime-filter
Open

LuciferYang wants to merge 3 commits into
apache:mainfrom
LuciferYang:vl18-h1-spj-empty-runtime-filter

Conversation

@LuciferYang

@LuciferYang LuciferYang commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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.

Related issue: #13719

Copilot AI balanced review requested due to automatic review settings November 23, 2026 04:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@github-actions github-actions Bot added CORE works for Gluten Core DATA_LAKE labels Nov 23, 2026
@github-actions

Copy link
Copy Markdown

Run Gluten Clickhouse CI on x86

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CORE works for Gluten Core DATA_LAKE

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants