Skip to content

[Spark][#36841] Reuse the legacy maxRecordsPerBatch option in the Structured Streaming runner - #39952

Merged
Abacn merged 1 commit into
apache:masterfrom
tkaymak:spark4-streaming-maxrecords-option
Sep 1, 2026
Merged

[Spark][#36841] Reuse the legacy maxRecordsPerBatch option in the Structured Streaming runner#39952
Abacn merged 1 commit into
apache:masterfrom
tkaymak:spark4-streaming-maxrecords-option

Conversation

@tkaymak

@tkaymak tkaymak commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Follow up to the review discussion on #39906, #39906 (comment). Addresses #36841.

Replaces the structured streaming specific maxRecordsPerMicroBatch with a declaration mirroring SparkPipelineOptions#getMaxRecordsPerBatch exactly, Long with default -1, so the flag carries over when users migrate from the legacy runner.

Identical signatures share one PipelineOptionsFactory proxy and the new SparkStructuredStreamingPipelineOptionsTest locks that down: a value set through one interface is readable through the other, and the flag parses from args.

Nothing consumes the option on master yet, the streaming source arriving with the next slice will read it and treat values below 1 as unlimited, matching the legacy semantics.

R: @Abacn

…d Streaming runner

Replaces the structured streaming specific maxRecordsPerMicroBatch with
a declaration mirroring SparkPipelineOptions#getMaxRecordsPerBatch
exactly, Long with default -1, so the flag carries over when migrating
from the legacy runner. Identical signatures share one options proxy,
which the new test locks down.
@tkaymak tkaymak changed the title [#36841] Reuse the legacy maxRecordsPerBatch option in the Structured Streaming runner [Spark][#36841] Reuse the legacy maxRecordsPerBatch option in the Structured Streaming runner Sep 1, 2026
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment assign set of reviewers

@Abacn

Abacn commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

PreCommit Java failing due to breakage on HEAD, not related to this change, merging for now

@Abacn
Abacn merged commit 261ed24 into apache:master Sep 1, 2026
15 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants