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

[BEAM-13590] Minor deprecated warning fix #17453

Merged
merged 1 commit into from
Apr 26, 2022

Conversation

Abacn
Copy link
Contributor

@Abacn Abacn commented Apr 23, 2022

  • Fix abc import

  • Also fix pyarrow deprecated parameter name

Please add a meaningful description for your change here

Found two warnings in python unit test related to deprecated code:

apache_beam/runners/direct/transform_evaluator.py:1029
/Users/yathu/beam/sdks/python/apache_beam/runners/direct/transform_evaluator.py:1029: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 (Note: 3.10) it will stop working
isinstance(element.value, collections.Iterable) and

apache_beam/io/parquetio_test.py:426
/Users/yathu/beam/sdks/python/apache_beam/io/parquetio_test.py:426: FutureWarning: The parameter chunksize is deprecated for pyarrow.Table.to_batches as of 0.15, please use the parameter max_chunksize instead
pa.Table.from_batches([batch]) for batch in self._records_as_arrow(


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.
  • 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.

* Fix abc import

* Also fix pyarrow deprecated parameter name
@asf-ci
Copy link

asf-ci commented Apr 23, 2022

Can one of the admins verify this patch?

2 similar comments
@asf-ci
Copy link

asf-ci commented Apr 23, 2022

Can one of the admins verify this patch?

@asf-ci
Copy link

asf-ci commented Apr 23, 2022

Can one of the admins verify this patch?

@codecov
Copy link

codecov bot commented Apr 23, 2022

Codecov Report

Merging #17453 (935e368) into master (2c18ce0) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #17453      +/-   ##
==========================================
- Coverage   73.93%   73.92%   -0.01%     
==========================================
  Files         689      689              
  Lines       90397    90397              
==========================================
- Hits        66834    66828       -6     
- Misses      22379    22385       +6     
  Partials     1184     1184              
Flag Coverage Δ
python 83.65% <ø> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
.../apache_beam/runners/direct/transform_evaluator.py 90.32% <ø> (ø)
sdks/python/apache_beam/utils/interactive_utils.py 92.68% <0.00%> (-2.44%) ⬇️
...ks/python/apache_beam/runners/worker/data_plane.py 87.50% <0.00%> (-1.99%) ⬇️
...hon/apache_beam/runners/worker/bundle_processor.py 93.64% <0.00%> (+0.24%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2c18ce0...935e368. Read the comment docs.

@Abacn Abacn marked this pull request as ready for review April 23, 2022 01:21
@Abacn
Copy link
Contributor Author

Abacn commented Apr 25, 2022

R: @tvalentyn

1 similar comment
@Abacn
Copy link
Contributor Author

Abacn commented Apr 25, 2022

R: @tvalentyn

@tvalentyn tvalentyn merged commit 2418a14 into apache:master Apr 26, 2022
@Abacn Abacn deleted the fixdeprecatedwarning branch April 26, 2022 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants