Repository navigation
feat(bigquery): add bigquery_federated_query_cloud_sql sample to run … - #14729
Merged
Merged
Conversation
|
Here is the summary of changes. You are about to add 1 region tag.
This comment is generated by snippet-bot.
|
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a new Python sample for running federated queries from BigQuery to Cloud SQL using EXTERNAL_QUERY, along with its corresponding unit tests and configuration files. The feedback suggests updating the ignored_versions in noxfile_config.py to align with the repository's policy of testing only the oldest and newest supported Python versions (3.10 and 3.13) while ignoring intermediate versions.
iennae
force-pushed
the
feat/bq-federated-query-cloud-sql
branch
from
November 2, 2026 23:33
46c5826 to
094ade0
Compare
…a federated query against Cloud SQL Problem: The BigQuery documentation (https://cloud.google.com/bigquery/docs/cloud-sql-federated-queries) needs a standalone, tested Python code sample demonstrating how to run a federated query against Cloud SQL (region tag `bigquery_federated_query_cloud_sql`). Solution: - Add `federated_query_cloud_sql(project_id: str, connection_id: str) -> None` in `bigquery/federated_queries/bigquery_federated_query_cloud_sql.py` (Query a relational table in Cloud SQL in real time from BigQuery using EXTERNAL_QUERY.) - Add unit tests (`bigquery/federated_queries/bigquery_federated_query_cloud_sql_test.py`) covering both the success path and API error handling (`GoogleAPICallError`)
iennae
force-pushed
the
feat/bq-federated-query-cloud-sql
branch
from
November 3, 2026 02:44
094ade0 to
d23df65
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…a federated query against Cloud SQL
Problem:
The BigQuery documentation (https://cloud.google.com/bigquery/docs/cloud-sql-federated-queries) needs a standalone, tested Python code sample demonstrating how to run a federated query against Cloud SQL (region tag
bigquery_federated_query_cloud_sql).Solution:
federated_query_cloud_sql(project_id: str, connection_id: str) -> Noneinbigquery/federated_queries/bigquery_federated_query_cloud_sql.py(Query a relational table in Cloud SQL in real time from BigQuery using EXTERNAL_QUERY.)bigquery/federated_queries/bigquery_federated_query_cloud_sql_test.py) covering both the success path and API error handling (GoogleAPICallError)Description
Fixes #
Checklist
Testing
Compliance & Style
Post-Approval Actions