Repository navigation
feat(bigquery): add bigquery_call_procedure sample to call a SQL stor… - #14730
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 Python sample for calling a BigQuery stored procedure with input and output parameters, along with its corresponding unit tests and configuration files. The feedback suggests updating the ignored_versions in noxfile_config.py to ensure that the oldest supported Python version (3.10) is tested while intermediate versions (3.11 and 3.12) are ignored, in accordance with the repository's testing guidelines.
4f812b7 to
f084233
Compare
…ed procedure Problem: The BigQuery documentation (https://cloud.google.com/bigquery/docs/procedures) needs a standalone, tested Python code sample demonstrating how to call a SQL stored procedure (region tag `bigquery_call_procedure`). Solution: - Add `call_procedure(project_id: str, dataset_id: str, procedure_id: str) -> None` in `bigquery/stored_procedures/bigquery_call_procedure.py` (Invoke a BigQuery SQL stored procedure with input parameters and capture its output variable using CALL.) - Add unit tests (`bigquery/stored_procedures/bigquery_call_procedure_test.py`) covering both the success path and API error handling (`GoogleAPICallError`)
f084233 to
3a6f0fc
Compare
…ed procedure
Problem:
The BigQuery documentation (https://cloud.google.com/bigquery/docs/procedures) needs a standalone, tested Python code sample demonstrating how to call a SQL stored procedure (region tag
bigquery_call_procedure).Solution:
call_procedure(project_id: str, dataset_id: str, procedure_id: str) -> Noneinbigquery/stored_procedures/bigquery_call_procedure.py(Invoke a BigQuery SQL stored procedure with input parameters and capture its output variable using CALL.)bigquery/stored_procedures/bigquery_call_procedure_test.py) covering both the success path and API error handling (GoogleAPICallError)Description
Fixes #
Checklist
Testing
Compliance & Style
Post-Approval Actions