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

Add ability to remove/clear map and set state #22938

Merged
merged 8 commits into from
Aug 31, 2022

Conversation

damccorm
Copy link
Contributor

@damccorm damccorm commented Aug 29, 2022

Adds Remove and Clear operations for maps and sets + an integration test. I also removed some TODOs around caching our encoders/decoders since making them is cheap and caching them doesn't get us much.

Part of #22736


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
Go tests

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

@github-actions github-actions bot added the go label Aug 29, 2022
@codecov
Copy link

codecov bot commented Aug 29, 2022

Codecov Report

Merging #22938 (3c80a2d) into master (3ede5b7) will increase coverage by 0.01%.
The diff coverage is 29.72%.

@@            Coverage Diff             @@
##           master   #22938      +/-   ##
==========================================
+ Coverage   73.69%   73.71%   +0.01%     
==========================================
  Files         713      713              
  Lines       94988    95169     +181     
==========================================
+ Hits        69998    70150     +152     
- Misses      23689    23722      +33     
+ Partials     1301     1297       -4     
Flag Coverage Δ
go 51.03% <29.72%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
sdks/go/pkg/beam/core/runtime/exec/userstate.go 5.46% <0.00%> (-0.62%) ⬇️
sdks/go/pkg/beam/core/state/state.go 83.60% <100.00%> (+2.74%) ⬆️
sdks/python/apache_beam/dataframe/io.py 89.26% <0.00%> (-0.06%) ⬇️
...hon/apache_beam/runners/worker/bundle_processor.py 93.79% <0.00%> (+0.12%) ⬆️
sdks/python/apache_beam/io/fileio.py 96.67% <0.00%> (+0.61%) ⬆️
...eam/runners/portability/fn_api_runner/execution.py 93.08% <0.00%> (+0.64%) ⬆️
sdks/python/apache_beam/io/localfilesystem.py 91.72% <0.00%> (+0.75%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@damccorm
Copy link
Contributor Author

Run Go PostCommit

@damccorm damccorm changed the title WIP: Add ability to remove/clear map and set state Add ability to remove/clear map and set state Aug 30, 2022
@damccorm damccorm marked this pull request as ready for review August 30, 2022 10:30
@damccorm
Copy link
Contributor Author

R: @riteshghorse

@github-actions
Copy link
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control

@damccorm
Copy link
Contributor Author

Run Go PostCommit

Copy link
Contributor

@riteshghorse riteshghorse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, thanks!

@damccorm
Copy link
Contributor Author

retest this please

@damccorm
Copy link
Contributor Author

GoPortable completed successfully, but seems to be having a hard time updating status here. I'm not going to block on that

@damccorm damccorm merged commit 5b07be1 into apache:master Aug 31, 2022
@damccorm damccorm deleted the users/damccorm/clearMapState branch August 31, 2022 16:32
dedocibula pushed a commit to dedocibula/beam that referenced this pull request Sep 15, 2022
* WIP: Add ability to remove/clear map and set state

* Add set test + fix map test

* String fix

* Add missing set state test

* go fmt
kkdoon pushed a commit to twitter-forks/beam that referenced this pull request Sep 29, 2022
* WIP: Add ability to remove/clear map and set state

* Add set test + fix map test

* String fix

* Add missing set state test

* go fmt
cushon pushed a commit to cushon/beam that referenced this pull request Oct 17, 2022
* WIP: Add ability to remove/clear map and set state

* Add set test + fix map test

* String fix

* Add missing set state test

* go fmt
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.

2 participants