-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Support writing to Pubsub with ordering key; Add PubsubMessage SchemaCoder #31608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
7306870
support writing pubsub messages with ordering key
ahmedabu98 c64ae31
Merge branch 'master' of https://github.com/ahmedabu98/beam into pubs…
ahmedabu98 4bcd3b4
Add ordering key size validation to validatePubsubMessageSize
sjvanrossum 9627cbe
Refactor writeMessagesWithOrderingKey into withOrderingKey
sjvanrossum ddd916f
Route to bad records if key is defined, but would be dropped silently
sjvanrossum 4791fca
Add publishBatchWithOrderingKey to PubsubUnboundedSink
sjvanrossum 73b07c1
Abort override if PubsubUnboundedSink set publishBatchWithOrderingKey
sjvanrossum 986c2a5
Add support for ordering keys in PubsubBoundedWriter
sjvanrossum f5f8b57
Add support for ordering keys in PubsubUnboundedSink
sjvanrossum 21e8e8e
Remove nullable ordering keys, null and empty are equivalent
sjvanrossum 42bbb77
Construct OutgoingMessage with Beam PubsubMessage to reduce repetition
sjvanrossum 394d135
Improve readability of PubsubUnboundedSink batch assignment
sjvanrossum 1043961
Add size validation TODOs
sjvanrossum cd727c2
Replace auto-sharding sink comment with FR link, move to relevant place
sjvanrossum 20e7bb9
Add links to Pub/Sub documentation
sjvanrossum 5911f63
Refine comment about lack of ordering key support in Dataflow's sink
sjvanrossum ad397aa
Add TODO to remove ordering key check once all sinks support this
sjvanrossum 53134d6
Add missing return statement
sjvanrossum 402ec94
Remove duplicated statements
sjvanrossum a97f64c
Apply Spotless
sjvanrossum 4513db4
Add notable changes
sjvanrossum dd8af6d
Merge pull request #427 from sjvanrossum/pr31608
ahmedabu98 a60d689
address comments
ahmedabu98 5bac762
allow messages with ordering keys even when the sink isn't configured…
ahmedabu98 53d47a7
spotless
ahmedabu98 cb9e7fb
spotless
ahmedabu98 bbe25ca
add warning log when ordering key is not configured
ahmedabu98 fa80a24
address comments
ahmedabu98 1bf4ae2
Merge branch 'master' of https://github.com/ahmedabu98/beam into pubs…
ahmedabu98 6197c21
Distribute ordering keys across shards with consistent hashing
sjvanrossum 03b9159
Drop the ordering key field if ordering key writes are disabled
sjvanrossum 7ed73bd
Merge remote-tracking branch 'origin/master' into pubsub_orderingkey_…
sjvanrossum c5e44a2
Add more context to TODOs and remove one TODO occurrence
sjvanrossum b24ecbd
Add soft deprecation notice to coders for maintainers of PubsubIO
sjvanrossum 35be569
Use attachValues instead of constructing a map of named fields
sjvanrossum 0acc1b1
Apply suggestions from code review
sjvanrossum 8fd553f
Add missing import of Nullable
sjvanrossum d3e5fbd
Fix row builder
sjvanrossum 7e3466d
Add missing nullable annotation to attachValues
sjvanrossum 2cb82f4
Remove unused field pubishBatchSize
sjvanrossum 5057399
Rewrite integration test for ordering key writes
sjvanrossum e69aae1
Fix assertion failure on empty ordering key
sjvanrossum 05369b9
Add comments
sjvanrossum 2aa00bf
Add unit tests for ordering key writes
sjvanrossum 8730e48
Unconditionally reset test client state to prevent global state corru…
sjvanrossum 65f32b3
Merge remote-tracking branch 'origin/master' into pubsub_orderingkey_…
sjvanrossum d476406
Shuffle input for multiple ordering key batches
sjvanrossum 7f61761
Add comment above call to shuffle
sjvanrossum File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.