Skip to content

[Gemini] GCP BigQuery IO Modern Client Migration - #40340

Closed
jrmccluskey wants to merge 27 commits into
apache:masterfrom
jrmccluskey:clientMigration
Closed

jrmccluskey wants to merge 27 commits into
apache:masterfrom
jrmccluskey:clientMigration

Conversation

@jrmccluskey

Copy link
Copy Markdown
Contributor

Migrates Python BigQuery IO usage to the modern client, with the legacy apitools-generated client available via passing --experiments=use_legacy_bigquery_client or --experiments=use_legacy_bq_client. Also adds documentation on the compatibility shims introduced in #39998 (but these are unlikely to be used.)

Part of #37261


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 or the workflows README to see a list of phrases to trigger workflows.

@codecov

codecov Bot commented Sep 29, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 48.89317% with 531 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.12%. Comparing base (22a237b) to head (98d1909).
⚠️ Report is 123 commits behind head on master.

Files with missing lines Patch % Lines
sdks/python/apache_beam/io/gcp/bigquery_tools.py 48.77% 440 Missing ⚠️
...thon/apache_beam/io/gcp/bigquery_change_history.py 26.19% 31 Missing ⚠️
sdks/python/apache_beam/io/gcp/bigquery.py 44.44% 30 Missing ⚠️
...python/apache_beam/io/gcp/bigquery_schema_tools.py 70.00% 12 Missing ⚠️
...s/python/apache_beam/io/gcp/bigquery_file_loads.py 47.36% 10 Missing ⚠️
...ython/apache_beam/io/gcp/bigquery_read_internal.py 58.33% 5 Missing ⚠️
...ython/apache_beam/io/gcp/tests/bigquery_matcher.py 40.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #40340      +/-   ##
============================================
- Coverage     57.25%   56.12%   -1.13%     
+ Complexity     3695     2290    -1405     
============================================
  Files          1200     1122      -78     
  Lines        194194   178833   -15361     
  Branches       3889     1486    -2403     
============================================
- Hits         111183   100377   -10806     
+ Misses        79406    75935    -3471     
+ Partials       3605     2521    -1084     
Flag Coverage Δ
python 79.30% <48.89%> (-0.53%) ⬇️

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

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant