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

[Python] use get_buffer to fetch buffer when the buffer is None #27373

Merged
merged 9 commits into from
Jul 11, 2023

Conversation

AnandInguva
Copy link
Contributor

@AnandInguva AnandInguva commented Jul 6, 2023

Fixes: #25315
Fixes: #23228


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

  • 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 python label Jul 6, 2023
@codecov
Copy link

codecov bot commented Jul 6, 2023

Codecov Report

Merging #27373 (c77587f) into master (88e635a) will decrease coverage by 0.12%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master   #27373      +/-   ##
==========================================
- Coverage   71.31%   71.19%   -0.12%     
==========================================
  Files         862      862              
  Lines      105199   104659     -540     
==========================================
- Hits        75025    74516     -509     
+ Misses      28624    28593      -31     
  Partials     1550     1550              
Flag Coverage Δ
python 80.41% <100.00%> (-0.11%) ⬇️

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

Impacted Files Coverage Δ
...eam/runners/portability/fn_api_runner/fn_runner.py 87.89% <100.00%> (+0.03%) ⬆️

... and 32 files with indirect coverage changes

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

@AnandInguva AnandInguva changed the title Create empty ListBuffer when buffer is None [Python] use get_buffer to fetch buffer when the buffer is None Jul 10, 2023
@AnandInguva AnandInguva marked this pull request as ready for review July 10, 2023 15:30
@AnandInguva
Copy link
Contributor Author

AnandInguva commented Jul 10, 2023

R: @pabloem cc: @tvalentyn , @liferoad

@github-actions
Copy link
Contributor

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

@AnandInguva
Copy link
Contributor Author

I tested the TFX test mentioned at #25315 (comment). It is working

@pabloem
Copy link
Member

pabloem commented Jul 10, 2023

this LGTM! Thanks so much @AnandInguva - can you add a test case? Feel free to merge after adding the test case.

@AnandInguva
Copy link
Contributor Author

this LGTM! Thanks so much @AnandInguva - can you add a test case? Feel free to merge after adding the test case.

Done. Test fails without the above change

@AnandInguva
Copy link
Contributor Author

Lint error is not related to this PR

@AnandInguva AnandInguva merged commit 63d5171 into master Jul 11, 2023
72 checks passed
AnandInguva added a commit that referenced this pull request Jul 13, 2023
AnandInguva added a commit that referenced this pull request Jul 13, 2023
aleksandr-dudko pushed a commit to aleksandr-dudko/beam that referenced this pull request Jul 17, 2023
…he#27373)

* Create empty ListBuffer when buffer is none

* Replace empty buffer with a List/GroupBuffer

* Apply suggestions from code review

* Fix mypy error

* Update sdks/python/apache_beam/runners/portability/fn_api_runner/fn_runner.py

* Add test

* Add note to CHANGES.md

* Fix link in CHANGES.md
aleksandr-dudko pushed a commit to aleksandr-dudko/beam that referenced this pull request Jul 17, 2023
@Abacn Abacn deleted the direct_runner_bug branch July 21, 2023 14:36
bullet03 pushed a commit to akvelon/beam that referenced this pull request Aug 11, 2023
…he#27373)

* Create empty ListBuffer when buffer is none

* Replace empty buffer with a List/GroupBuffer

* Apply suggestions from code review

* Fix mypy error

* Update sdks/python/apache_beam/runners/portability/fn_api_runner/fn_runner.py

* Add test

* Add note to CHANGES.md

* Fix link in CHANGES.md
bullet03 pushed a commit to akvelon/beam that referenced this pull request Aug 11, 2023
cushon pushed a commit to cushon/beam that referenced this pull request May 24, 2024
…he#27373)

* Create empty ListBuffer when buffer is none

* Replace empty buffer with a List/GroupBuffer

* Apply suggestions from code review

* Fix mypy error

* Update sdks/python/apache_beam/runners/portability/fn_api_runner/fn_runner.py

* Add test

* Add note to CHANGES.md

* Fix link in CHANGES.md
cushon pushed a commit to cushon/beam that referenced this pull request May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants