Skip to content
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

[cherry-pick][release-2.40.0][Fixes #21927] Compress (Un)BoundedSourceAsSdfWrapper element and restriction coders #21936

Merged
merged 1 commit into from
Jun 18, 2022

Conversation

pabloem
Copy link
Member

@pabloem pabloem commented Jun 17, 2022

…rceAsSdfWrapper element and restriction coders

Cherry-pick of #21928

A typical BoundedSource may be split into many BoundedSource instances during initial splitting. Doing a simple test of the BigtableSource shows that encoding 10 instances after splitting took on average 102660 bytes while compressing each instance separately after encoding took 1639 bytes for a >60x improvement.

  • Also handle unbounded sources.

Please add a meaningful description for your change here


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).
  • Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests

See CI.md for more information about GitHub Actions CI.

…n)BoundedSourceAsSdfWrapper element and restriction coders

* [Fixes apache#21927] Compress BoundedSourceAsSdfWrapper element and restriction coders

A typical BoundedSource may be split into many BoundedSource instances during initial splitting. Doing a simple test of the BigtableSource shows that encoding 10 instances after splitting took on average 102660 bytes while compressing each instance separately after encoding took 1639 bytes for a >60x improvement.

* Also handle unbounded sources.
@pabloem
Copy link
Member Author

pabloem commented Jun 17, 2022

r: @lukecwik

@github-actions github-actions bot added the java label Jun 17, 2022
@pabloem
Copy link
Member Author

pabloem commented Jun 17, 2022

Run Java_Examples_Dataflow PreCommit

@pabloem
Copy link
Member Author

pabloem commented Jun 18, 2022

Run Java PostCommit

@pabloem pabloem merged commit 12d0fe4 into apache:release-2.40.0 Jun 18, 2022
@pabloem pabloem deleted the bt-fix branch June 18, 2022 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants