Skip to content

[#40950] Spark Structured Streaming runner: translate Redistribute like Reshuffle - #41106

Merged
Abacn merged 1 commit into
apache:masterfrom
tkaymak:spark4-streaming-redistribute
Nov 9, 2026
Merged

Abacn merged 1 commit into
apache:masterfrom
tkaymak:spark4-streaming-redistribute

Conversation

@tkaymak

@tkaymak tkaymak commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Closes #40950, part of #36841.

Redistribute.byKey() expands to a GroupByKey with ReshuffleTrigger, which the Spark 4 streaming translator rejects as a custom trigger. RedistributeByKey is now registered next to Reshuffle in PipelineTranslatorCommon and translated the same way, a repartition on the key, in batch and streaming. Redistribute.arbitrarily() builds on it. Windows, timestamps and panes are kept, since the rows move unchanged.

The 7 RedistributeTest cases excluded from the streaming ValidatesRunner suite failed with "Custom triggers (ReshuffleTrigger())" and pass now. Locally the streaming suite runs 198 tests with 0 failures, the batch Structured Streaming suites on Spark 4 and 3 pass unchanged, as do the full :runners:spark:4:test and :runners:spark:3:test. The trigger files run both ValidatesRunner PostCommits here.

@tkaymak

tkaymak commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

R: @Abacn

@github-actions github-actions Bot added runners spark size/s S: 10-49 lines changed labels Nov 9, 2026
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control. If you'd like to restart, comment assign set of reviewers

@Abacn Abacn 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.

Thanks!

@Abacn
Abacn merged commit 9777788 into apache:master Nov 9, 2026
21 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

runners size/s S: 10-49 lines changed spark

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Task]: Spark 4 streaming runner, support Redistribute

2 participants