Repository navigation
[Dataflow Streaming] [MultiKey] Enable combiner lifting when multi-key bundle experiment is enabled - #41658
Merged
reuvenlax merged 1 commit intoNov 25, 2026
Conversation
…y bundle experiment is enabled In Dataflow streaming mode, combiner lifting on GroupByKey was previously restricted to transforms with fewKeys because single-key bundles rarely have repeated destination keys. When unstable_enable_multi_key_bundle is enabled, bundles process multiple keys together, making mapper-side combiner lifting beneficial for per-key combines as well. This change: - Defines UNSTABLE_ENABLE_MULTI_KEY_BUNDLE in DataflowStreamingPipelineOptions and reuses it from MultiKeyBundleOptions. - Allows combiner lifting in DataflowPipelineTranslator for streaming GroupByKey when transform.fewKeys() or unstable_enable_multi_key_bundle is set, while preserving non-merging window, single-window assignment, and trigger compatibility checks. - Adds unit tests in DataflowPipelineTranslatorTest covering default streaming behavior, multi-key enabled per-key combines, and incompatible triggers/windows.
Contributor
Author
|
R: @reuvenlax |
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 |
Contributor
There was a problem hiding this comment.
📋 Review Summary
This PR enables combiner lifting for per-key GroupByKey transforms in Dataflow streaming pipelines when the unstable_enable_multi_key_bundle experiment is enabled, while preserving existing windowing and trigger compatibility checks. The constant is cleanly shared via DataflowStreamingPipelineOptions and the translator behavior is well covered by new unit tests.
🔍 General Feedback
- Moving
UNSTABLE_ENABLE_MULTI_KEY_BUNDLEtoDataflowStreamingPipelineOptionsand referencing it fromMultiKeyBundleOptionscleanly avoids duplicate string literals across the runner and worker modules. - The unit tests in
DataflowPipelineTranslatorTestthoroughly cover default streaming behavior, compatible triggers with the multi-key bundle experiment, and incompatible triggers/window functions (count triggers, merging windows, and multi-window assignments).
💡 Tip: Comment /gemini review on this pull request to trigger a new Gemini code review.
Contributor
|
lgtm |
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.
No description provided.