Repository navigation
feat(bigquery): add bigquery_federated_query_alloydb sample to run a … - #14731
Conversation
|
Here is the summary of changes. You are about to add 1 region tag.
This comment is generated by snippet-bot.
|
There was a problem hiding this comment.
Code Review
This pull request introduces a new sample for running federated queries from BigQuery to AlloyDB, along with its corresponding unit tests and configuration files. The feedback recommends adjusting the Python versions in the test configuration to target only the oldest and newest supported releases, and removing unnecessary environment markers for unsupported Python versions in the test requirements.
| @@ -0,0 +1 @@ | |||
| pytest==9.0.3; python_version >= "3.10" | |||
There was a problem hiding this comment.
Since Python versions below 3.10 are no longer supported, there is no need to specify environment markers or fallback dependency versions for Python versions older than 3.10. Please remove the ; python_version >= "3.10" marker.
pytest==9.0.3
References
- Do not specify fallback dependency versions or environment markers for Python versions older than 3.10, as Python versions below 3.10 are no longer supported.
0e0454a to
5a3a373
Compare
…federated query against AlloyDB for PostgreSQL Problem: The BigQuery documentation (https://cloud.google.com/bigquery/docs/alloydb-federated-queries) needs a standalone, tested Python code sample demonstrating how to run a federated query against AlloyDB for PostgreSQL (region tag `bigquery_federated_query_alloydb`). Solution: - Add `federated_query_alloydb(project_id: str, connection_id: str) -> None` in `bigquery/federated_queries/bigquery_federated_query_alloydb.py` (Query an AlloyDB for PostgreSQL table in real time from BigQuery using EXTERNAL_QUERY.) - Add unit tests (`bigquery/federated_queries/bigquery_federated_query_alloydb_test.py`) covering both the success path and API error handling (`GoogleAPICallError`)
5a3a373 to
756a0ba
Compare
…federated query against AlloyDB for PostgreSQL
Problem:
The BigQuery documentation (https://cloud.google.com/bigquery/docs/alloydb-federated-queries) needs a standalone, tested Python code sample demonstrating how to run a federated query against AlloyDB for PostgreSQL (region tag
bigquery_federated_query_alloydb).Solution:
federated_query_alloydb(project_id: str, connection_id: str) -> Noneinbigquery/federated_queries/bigquery_federated_query_alloydb.py(Query an AlloyDB for PostgreSQL table in real time from BigQuery using EXTERNAL_QUERY.)bigquery/federated_queries/bigquery_federated_query_alloydb_test.py) covering both the success path and API error handling (GoogleAPICallError)Description
Fixes #
Checklist
Testing
Compliance & Style
Post-Approval Actions