Skip to content

Conversation

@ihji
Copy link
Contributor

@ihji ihji commented Apr 4, 2019

make StringUtf8Coder standard in Java SDK.


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- --- --- --- ---
Java Build Status Build Status Build Status Build Status
Build Status
Build Status
Build Status Build Status Build Status
Python Build Status
Build Status
--- Build Status
Build Status
Build Status --- --- ---

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website
Non-portable Build Status Build Status Build Status Build Status
Portable --- Build Status --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

Copy link
Contributor

@robertwb robertwb left a 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.

@robertwb
Copy link
Contributor

robertwb commented Apr 5, 2019

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.

@ihji
Copy link
Contributor Author

ihji commented Apr 8, 2019

retest this please

@ihji ihji force-pushed the BEAM-7008 branch 4 times, most recently from 514a2cf to 3c32587 Compare April 10, 2019 23:09
@ihji ihji changed the title [BEAM-7008] standardize UTF-8 string coder encodings [BEAM-7008] adding UTF8 String coder to Java SDK ModelCoders Apr 10, 2019
@ihji ihji mentioned this pull request Apr 11, 2019
3 tasks
@ihji ihji force-pushed the BEAM-7008 branch 2 times, most recently from a884ccb to 99d5302 Compare April 11, 2019 18:49
@ihji
Copy link
Contributor Author

ihji commented Apr 11, 2019

@robertwb turned out that python strutf8coder modification was not necessary for #8174.

@ihji ihji force-pushed the BEAM-7008 branch 2 times, most recently from 77f39c0 to 7bb7d29 Compare April 17, 2019 22:50
@robertwb
Copy link
Contributor

Let me know when this is ready for me to take another look.

@ihji
Copy link
Contributor Author

ihji commented May 3, 2019

run java precommit

@ihji
Copy link
Contributor Author

ihji commented May 3, 2019

@robertwb PTAL. Thanks!

Copy link
Contributor

@robertwb robertwb left a 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...)

@mxm
Copy link
Contributor

mxm commented May 8, 2019

Thanks @ihji!

@mxm mxm merged commit 0edab50 into apache:master May 8, 2019
mxm added a commit to mxm/beam that referenced this pull request May 8, 2019
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.
angoenka added a commit to angoenka/beam that referenced this pull request May 9, 2019
…g coder to Java SDK ModelCoders"

This reverts commit 0edab50, reversing
changes made to e7f7399.
@angoenka
Copy link
Contributor

angoenka commented May 9, 2019

Run Java PortabilityApi PostCommit

angoenka added a commit to angoenka/beam that referenced this pull request May 10, 2019
…g coder to Java SDK ModelCoders"

This reverts commit 0edab50, reversing
changes made to e7f7399.
angoenka added a commit that referenced this pull request May 10, 2019
Revert "Merge pull request #8228: [BEAM-7008] adding UTF8 String code…
@ihji ihji deleted the BEAM-7008 branch July 1, 2019 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants