feat(bigquery): add maximumBytesBilled source config#2724
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the BigQuery source configuration by adding a new "maximumBytesBilled" option. This feature empowers users to define a maximum amount of data (in bytes) that a BigQuery query can process, thereby providing a crucial mechanism for cost control. Queries that are projected to exceed this limit will now fail early, preventing unexpected billing. The change is integrated across query dry runs and execution, and is thoroughly documented and tested to ensure reliability and ease of use. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a maximumBytesBilled configuration for the BigQuery source, which is a valuable addition for managing query costs. The implementation is thorough, with changes applied to the source configuration, query execution logic, tool integrations, documentation, and tests. My review includes one suggestion to enhance the robustness of the new configuration field by adding validation.
5558999 to
acc5afb
Compare
b05f5b3 to
04d8357
Compare
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces a new maximumBytesBilled configuration option for the BigQuery source to allow for cost control on queries. The implementation adds the new setting and propagates it to query executions and dry runs in the relevant tools. The changes include validation for the new setting, updated documentation, and new tests for parsing and initialization. The implementation appears correct and complete. I have reviewed the changes and found no issues.
@yathu-arulnanthy-gtg thanks 😁 |
|
Hi @Genesis929, could you review this BQ change? Thanks! |
|
amazing..🫡 |
068f21f to
f8aa955
Compare
|
/gcbrun |
Fixes #2719 Summary - add optional `maximumBytesBilled` to BigQuery source config\n- apply per-query cap to dry runs and query execution- document and test config parsing/initialization ## Testing - go test ./internal/sources/bigquery ./internal/tools/bigquery/... --------- Co-authored-by: Wenxin Du <117315983+duwenxin99@users.noreply.github.com> 42f2d07
…pis#2724) Fixes googleapis#2719 Summary - add optional `maximumBytesBilled` to BigQuery source config\n- apply per-query cap to dry runs and query execution- document and test config parsing/initialization ## Testing - go test ./internal/sources/bigquery ./internal/tools/bigquery/... --------- Co-authored-by: Wenxin Du <117315983+duwenxin99@users.noreply.github.com> 42f2d07
…pis#2724) Fixes googleapis#2719 Summary - add optional `maximumBytesBilled` to BigQuery source config\n- apply per-query cap to dry runs and query execution- document and test config parsing/initialization ## Testing - go test ./internal/sources/bigquery ./internal/tools/bigquery/... --------- Co-authored-by: Wenxin Du <117315983+duwenxin99@users.noreply.github.com> 42f2d07
…pis#2724) Fixes googleapis#2719 Summary - add optional `maximumBytesBilled` to BigQuery source config\n- apply per-query cap to dry runs and query execution- document and test config parsing/initialization ## Testing - go test ./internal/sources/bigquery ./internal/tools/bigquery/... --------- Co-authored-by: Wenxin Du <117315983+duwenxin99@users.noreply.github.com> 42f2d07
|
🎉 |
…pis#2724) Fixes googleapis#2719 Summary - add optional `maximumBytesBilled` to BigQuery source config\n- apply per-query cap to dry runs and query execution- document and test config parsing/initialization ## Testing - go test ./internal/sources/bigquery ./internal/tools/bigquery/... --------- Co-authored-by: Wenxin Du <117315983+duwenxin99@users.noreply.github.com> 42f2d07
…pis#2724) Fixes googleapis#2719 Summary - add optional `maximumBytesBilled` to BigQuery source config\n- apply per-query cap to dry runs and query execution- document and test config parsing/initialization ## Testing - go test ./internal/sources/bigquery ./internal/tools/bigquery/... --------- Co-authored-by: Wenxin Du <117315983+duwenxin99@users.noreply.github.com> 42f2d07
🤖 I have created a release *beep* *boop* --- ## [1.2.0](v1.1.0...v1.2.0) (2026-05-07) ### Features * Add support for HTTPS/TLS listener ([#3126](#3126)) ([8bc385d](8bc385d)) * **source/bigquery:** Add maximumBytesBilled source config ([#2724](#2724)) ([42f2d07](42f2d07)) * **source/cloud-storage:** Add bucket and object management tools ([#3129](#3129)) ([8de9bcf](8de9bcf)) * **source/cloud-storage:** Add Cloud Storage source with list_objects and read_object tools ([#3081](#3081)) ([da27b37](da27b37)) * **source/cloud-storage:** Add write/copy/move/delete object tools ([#3139](#3139)) ([b225fc4](b225fc4)) * **tools/knowledge-catalog:** Search Data Quality Scans ([#2444](#2444)) ([1c63551](1c63551)) ### Bug Fixes * Allow converting string literal block with list ([#3050](#3050)) ([36ab2a9](36ab2a9)), closes [#3023](#3023) * **mcp:** Implement router-level logger injection for MCP auth ([#3067](#3067)) ([ccc7cf5](ccc7cf5)) * Prevent test.db from being created during unit tests ([#3042](#3042)) ([d10d2ca](d10d2ca)) * Remove hardcoded * allowed origin for sse ([#3054](#3054)) ([c4c7bd9](c4c7bd9)) * **sources/postgres:** Apply URL encoding to query string params ([#3020](#3020)) ([6b860f4](6b860f4)) * **tool/looker-conversational-analytics:** OAuth token in GDA payload fix ([#3058](#3058)) ([6632d96](6632d96)) * **tools/bigquery-execute-sql:** Avoid surfacing invalid queries as MCP 500s ([#3056](#3056)) ([7ed92c8](7ed92c8)) * **tools/looker:** Fix OAuth for Converational Analytics ([#3044](#3044)) ([f9e3e55](f9e3e55)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com>
🤖 I have created a release *beep* *boop* --- ## [1.2.0](googleapis/mcp-toolbox@v1.1.0...v1.2.0) (2026-05-07) ### Features * Add support for HTTPS/TLS listener ([googleapis#3126](googleapis#3126)) ([8bc385d](googleapis@8bc385d)) * **source/bigquery:** Add maximumBytesBilled source config ([googleapis#2724](googleapis#2724)) ([42f2d07](googleapis@42f2d07)) * **source/cloud-storage:** Add bucket and object management tools ([googleapis#3129](googleapis#3129)) ([8de9bcf](googleapis@8de9bcf)) * **source/cloud-storage:** Add Cloud Storage source with list_objects and read_object tools ([googleapis#3081](googleapis#3081)) ([da27b37](googleapis@da27b37)) * **source/cloud-storage:** Add write/copy/move/delete object tools ([googleapis#3139](googleapis#3139)) ([b225fc4](googleapis@b225fc4)) * **tools/knowledge-catalog:** Search Data Quality Scans ([googleapis#2444](googleapis#2444)) ([1c63551](googleapis@1c63551)) ### Bug Fixes * Allow converting string literal block with list ([googleapis#3050](googleapis#3050)) ([36ab2a9](googleapis@36ab2a9)), closes [googleapis#3023](googleapis#3023) * **mcp:** Implement router-level logger injection for MCP auth ([googleapis#3067](googleapis#3067)) ([ccc7cf5](googleapis@ccc7cf5)) * Prevent test.db from being created during unit tests ([googleapis#3042](googleapis#3042)) ([d10d2ca](googleapis@d10d2ca)) * Remove hardcoded * allowed origin for sse ([googleapis#3054](googleapis#3054)) ([c4c7bd9](googleapis@c4c7bd9)) * **sources/postgres:** Apply URL encoding to query string params ([googleapis#3020](googleapis#3020)) ([6b860f4](googleapis@6b860f4)) * **tool/looker-conversational-analytics:** OAuth token in GDA payload fix ([googleapis#3058](googleapis#3058)) ([6632d96](googleapis@6632d96)) * **tools/bigquery-execute-sql:** Avoid surfacing invalid queries as MCP 500s ([googleapis#3056](googleapis#3056)) ([7ed92c8](googleapis@7ed92c8)) * **tools/looker:** Fix OAuth for Converational Analytics ([googleapis#3044](googleapis#3044)) ([f9e3e55](googleapis@f9e3e55)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com>
Fixes #2719
Summary
maximumBytesBilledto BigQuery source configTesting