Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: reduce bigquery table modification via DML for to_gbq #1737

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chelsea-lin
Copy link
Contributor

@chelsea-lin chelsea-lin commented May 14, 2025

To avoid exceeding BigQuery's 1500 daily table modification limit, to_gbq now prioritizes INSERT or MERGE DMLs. This method is used when the target table exists and shares the same schema, supporting both data replacement and appending. If schema discrepancies are found, to_gbq will default back to its original table modification process.

Fixes internal issue 409086472 🦕

@chelsea-lin chelsea-lin requested a review from tswast May 14, 2025 23:43
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels May 14, 2025
@chelsea-lin chelsea-lin force-pushed the main_chelsealin_togbqmerge branch 2 times, most recently from 056c6c8 to 5180abb Compare May 15, 2025 19:53
@product-auto-label product-auto-label bot added size: l Pull request size is large. and removed size: m Pull request size is medium. labels May 15, 2025
@chelsea-lin chelsea-lin changed the title fix: avoid table modification on to_gbq fix: reduce bigquery table modification via DML for to_gbq May 15, 2025
@chelsea-lin chelsea-lin force-pushed the main_chelsealin_togbqmerge branch from 5180abb to 1c32d28 Compare May 15, 2025 20:04
@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: l Pull request size is large. labels May 15, 2025
@chelsea-lin chelsea-lin marked this pull request as ready for review May 15, 2025 20:05
@chelsea-lin chelsea-lin requested review from a team as code owners May 15, 2025 20:05
@chelsea-lin chelsea-lin force-pushed the main_chelsealin_togbqmerge branch from 1c32d28 to d8ce12f Compare May 16, 2025 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants