-
Notifications
You must be signed in to change notification settings - Fork 4.5k
[BEAM-7008] adding UTF8 String coder to Java SDK ModelCoders #8228
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
robertwb
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.
I don't think we can change the existing coders (in particular, the unnested context) for backwards compatibility reasons.
|
FYI, the current implementation uses https://github.com/apache/beam/blob/release-2.12.0/sdks/python/apache_beam/coders/coder_impl.py#L199 to prefix with the length iff the context is nested. |
|
retest this please |
514a2cf to
3c32587
Compare
a884ccb to
99d5302
Compare
77f39c0 to
7bb7d29
Compare
|
Let me know when this is ready for me to take another look. |
|
run java precommit |
|
@robertwb PTAL. Thanks! |
robertwb
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. This looks good.
(It is unfortunate how many changes are needed just to make something into a standard coder in Java...)
|
Thanks @ihji! |
With apache#8383 we added support for TestStream in the legacy streaming Flink Runner. This ports TestStream also to the streaming portable Flink Runner. For this to work properly we had to make StringUtf8Coder a standard coder; this was done in apache#8228.
|
Run Java PortabilityApi PostCommit |
make StringUtf8Coder standard in Java SDK.
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.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.