Uh oh!
There was an error while loading. Please reload this page.
[BEAM-8932][Cleanup] Move external PubsubIO hooks outside of PubsubIO. - #10476
Conversation
Also fix these so that they typecheck correctly without relying on java runtime duck typing.
dpcollins-google
commented
Dec 28, 2019
+R: @boyuanzz |
834d304 to
b19859bCompareaaltay
commented
Jan 3, 2020
R: @chamikaramj could you find a person to review this PR? |
b19859b to
6fd05a7Compareboyuanzz
commented
Jan 7, 2020
@chamikaramj@ihji |
chamikaramj
commented
Jan 7, 2020
Cloud you create JIRAs and (break up PR as needed) to clarify context. Also title says cleanup but based on above comment seems like this is a new feature ? |
dpcollins-google
commented
Jan 7, 2020
This is cleanup, not a new feature. This only involves 6fd05a7, and moves things that exist in PubsubIO that don't need to be there outside of PubsubIO and make them type check correctly. |
chamikaramj
commented
Jan 7, 2020
Thanks. Please still create a JIRA to capture the context of the change and add it to title in the form [BEAM-JIRA#]. |
chadrik
commented
Jan 7, 2020
LGTM. cc'ing @mxm since he did the Kafka external transform support. |
6fd05a7 to
ce12b9dComparedpcollins-google
commented
Jan 8, 2020
Just rebased this. It should be clearer now that this is just cleanup. |
Uh oh!
There was an error while loading. Please reload this page.
udim
commented
Jan 8, 2020
Are there any tests for these external reads and writes? |
mxm
left a comment
There was a problem hiding this comment.
Also fix these so that they typecheck correctly without relying on java runtime duck typing.
Could you explain what you changed with regards to this?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
dpcollins-google
commented
Jan 9, 2020
Previously, these classes were inside a generic context with a parameter type of the builder, but they would have thrown an exception due to a bad cast if they were used with any type other than byte[]. This makes it explicit that the output type of the PTransform is a byte[] and removes some unsafe casts that were only correct if the output type is a byte[]. |
ce12b9d to
453b973Comparedpcollins-google
commented
Jan 9, 2020
Retest all please |
mxm
commented
Jan 9, 2020
Makes sense. Thanks for addressing this in the cleanup. |
chamikaramj
commented
Jan 9, 2020
In general, are changes to PubSubIO in this and other PRs you authored backwards compatible ? If change changes are not backwards compatible (if users cannot upgrade Beam without changes to their pipelines) i think this needs a deeper look since Beam guarantees backwards compatibility across minor versions. This is OK for external transforms part which is experimental but PubSubIO is used in production by many users. |
From an api perspective, neither this change nor any of the other ones until #10481 should have any user visible effects. That one is an attempt to add to the user api surface, but not remove anything. |
udim
commented
Jan 9, 2020
retest this please |
453b973 to
6078e95Compare6078e95 to
c7da5a2Compareudim
commented
Jan 9, 2020
retest this please |
1 similar comment
udim
commented
Jan 10, 2020
retest this please |
dpcollins-google
commented
Jan 13, 2020
retest this please |
1 similar comment
chamikaramj
commented
Jan 13, 2020
retest this please |
chamikaramj
commented
Jan 13, 2020
Retest this please |
chamikaramj
commented
Jan 15, 2020
Please fix the errors. For example, |
54a14ae to
3b9156eComparedpcollins-google
commented
Feb 6, 2020
Retest this please |
3 similar comments
chamikaramj
commented
Feb 6, 2020
Retest this please |
chamikaramj
commented
Feb 7, 2020
Retest this please |
chamikaramj
commented
Feb 7, 2020
Retest this please |
3b9156e to
61f4a96Comparedpcollins-google
commented
Feb 8, 2020
I believe the only issue turned up was inclusion of raw non-versioned ImmutableMap. Could we retest this please? |
dpcollins-google
commented
Feb 8, 2020
Retest this please |
1 similar comment
chamikaramj
commented
Feb 10, 2020
Retest this please |
61f4a96 to
0a15bcaComparechamikaramj
commented
Feb 10, 2020
Retest this please |
1 similar comment
chamikaramj
commented
Feb 10, 2020
Retest this please |
yifanzou
commented
Feb 11, 2020
Run Java PreCommit |
…ubsubIO hooks outside of PubsubIO.
Also fix these so that they typecheck correctly without relying on java runtime duck typing.
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-XXXwith 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.