-
Notifications
You must be signed in to change notification settings - Fork 4.5k
[BEAM-3279] Deprecate and remove Coder.consistentWithEquals #8071
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
Conversation
kennknowles
left a comment
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.
Thanks for working on this!
sdks/java/core/src/main/java/org/apache/beam/sdk/coders/BigEndianShortCoder.java
Show resolved
Hide resolved
kennknowles
left a comment
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.
Great. This looks like a good improvement.
sdks/java/core/src/test/java/org/apache/beam/sdk/coders/ListCoderTest.java
Outdated
Show resolved
Hide resolved
|
@kennknowles this change will ready to merge, If you don't have other comments |
|
@kennknowles PR squashed & ready to merge. |
|
@AlexKbit I opened a pull request to you for minor changes. Did you see it? |
|
@kennknowles Do you mean tests with hardcoded expected result for consistentWithEquals? |
[BEAM-3279] Deprecate and remove Coder.consistentWithEquals
|
@kennknowles should i do squash with this changes again? |
|
I can squash them for you. Thanks! |
|
Thanks! If you want to follow-up there is good test coverage missing here: each coder could have a test, shared in |
|
Thank you! Can you create another ticket for this task(assign to me)? |
|
Thank you! 😄 |
|
Congratulations! This change (which is good) exposed a critical bug in the core SDK. We may have to roll this back, hopefully only temporarily, while we figure out what to do. |
…pache#8071)" This reverts commit 43db80d.
[BEAM-7038] Revert "[BEAM-3279] Deprecate and remove Coder.consistentWithEquals (apache#8071)
…pache#8071)" This reverts commit 43db80d.
|
To roll this forward, we need to do a few things:
|
Hi @kennknowles !
Could you please review my changes:
I'm not sure about removal of overriding from :
org.apache.beam.sdk.coders.MapCoder#consistentWithEquals
org.apache.beam.sdk.coders.ListCoder#consistentWithEquals
because it breaks the tests below:
org.apache.beam.sdk.coders.MapCoderTest > testConsistentWithEquals FAILED
org.apache.beam.sdk.coders.ListCoderTest > testConsistentWithEquals FAILED
I can rewrite these tests if it's necessary.
Post-Commit Tests Status (on master branch)
See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.