Skip to content

[BEAM-14039] Propagate ignore_unknown_columns parameter.#16999

Merged
pabloem merged 1 commit intomasterfrom
unknown repository
Mar 10, 2022
Merged

[BEAM-14039] Propagate ignore_unknown_columns parameter.#16999
pabloem merged 1 commit intomasterfrom
unknown repository

Conversation

@jkukul
Copy link
Copy Markdown
Contributor

@jkukul jkukul commented Mar 3, 2022

Right now, the ignore_unknown_columns parameter is never passed from WriteToBigquery to _StreamToBigQuery
and therefore never reaches the bq_client's insert_rows_json method.

Please, let me know if I should add a test case for this, or it's fine like this.


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.

Right now, the ignore_unknown_columns parameter is never
passed from WriteToBigquery to _StreamToBigQuery
and therefore never reaches the bq_client.insert_rows_json method.
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 3, 2022

Codecov Report

Merging #16999 (83c1670) into master (74ab15c) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #16999      +/-   ##
==========================================
- Coverage   73.83%   73.82%   -0.01%     
==========================================
  Files         664      664              
  Lines       87272    87273       +1     
==========================================
- Hits        64434    64431       -3     
- Misses      21735    21739       +4     
  Partials     1103     1103              
Flag Coverage Δ
python 83.63% <100.00%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
sdks/python/apache_beam/io/gcp/bigquery.py 63.63% <100.00%> (+0.04%) ⬆️
sdks/python/apache_beam/runners/direct/executor.py 96.46% <0.00%> (-0.55%) ⬇️
...hon/apache_beam/runners/worker/bundle_processor.py 93.39% <0.00%> (-0.25%) ⬇️

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 74ab15c...83c1670. Read the comment docs.

@jkukul
Copy link
Copy Markdown
Contributor Author

jkukul commented Mar 8, 2022

r: @pabloem (since you introduced the parameter originally)

@jkukul
Copy link
Copy Markdown
Contributor Author

jkukul commented Mar 8, 2022

r: @youngoli (since you reviewed the PR which introduced it originally)

@pabloem
Copy link
Copy Markdown
Member

pabloem commented Mar 9, 2022

LGTM!

@pabloem
Copy link
Copy Markdown
Member

pabloem commented Mar 9, 2022

Run Python 3.8 PostCommit

Copy link
Copy Markdown
Contributor

@youngoli youngoli 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 to me. I'll leave it to Pablo to merge.

@pabloem pabloem merged commit fa8979c into apache:master Mar 10, 2022
@kennknowles
Copy link
Copy Markdown
Member

@pabloem maybe follow up with some tests of when this is set to True?

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.

4 participants