-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[BEAM-8932] [BEAM-9036] Revert reverted commit to use PubsubMessage as the canonical type in beam client #10474
Conversation
…age throughout."" This reverts commit aeae2f4.
+R: @boyuanzz |
Run SQL PostCommit |
Run Java PostCommit |
e6e73b1
to
e0e4ec0
Compare
Run Java PreCommit |
Run SQL PostCommit |
Run Java PostCommit |
e0e4ec0
to
788611a
Compare
Run Java PreCommit |
Run SQL PostCommit |
Run Java PostCommit |
Run Python PreCommit |
788611a
to
9304d1c
Compare
Run PreCommit |
Run Java PreCommit |
Retest all please |
Run Java PreCommit |
I don't think the test failures in Java prevommit are related to current changes. Let's try it again. |
Run Java PreCommit |
2 similar comments
Run Java PreCommit |
Run Java PreCommit |
Run SQL PostCommit |
if (pubsubMessage.getAttributes() != null) { | ||
attributes = pubsubMessage.getAttributes(); | ||
} else { | ||
attributes = new HashMap<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be more efficient and clear as Collections.emptyMap()
which is immutable and does not involve allocation.
…s the canonical type in beam client (apache#10474) * Revert "Revert "[BEAM-8932] Modify PubsubClient to use the proto message throughout."" This reverts commit aeae2f4. * Check for null attribute map in IncomingMessage before adding on PubsubMessage.
This is safe now that a null check was added on the attribute map in the json client.
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
R: @username
).[BEAM-XXX] Fixes bug in ApproximateQuantiles
, where you replaceBEAM-XXX
with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.See the Contributor Guide for more tips on how to make review process smoother.
Post-Commit Tests Status (on master branch)
Pre-Commit Tests Status (on master branch)
See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.