Skip to content

impl(bigquery): generate job/request IDs and mark query RPCs idempotent - #6219

Open
alvarowolfx wants to merge 2 commits into
googleapis:mainfrom
alvarowolfx:impl-bq-query-id-gen
Open

impl(bigquery): generate job/request IDs and mark query RPCs idempotent#6219
alvarowolfx wants to merge 2 commits into
googleapis:mainfrom
alvarowolfx:impl-bq-query-id-gen

Conversation

@alvarowolfx

Copy link
Copy Markdown
Contributor

Towards #5844 #6218

@product-auto-label product-auto-label Bot added the api: bigquery Issues related to the BigQuery API. label Jul 29, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces unique ID generation for BigQuery jobs and query requests using UUIDs to enable request idempotency. It updates the execution paths to set idempotency options and adds corresponding unit tests. The review feedback suggests refactoring generate_job_reference into an associated function to avoid borrowing &self and eliminate an unnecessary clone of project_id, which also simplifies its unit test.

Comment thread src/bigquery/src/query/run_query.rs Outdated
Comment thread src/bigquery/src/query/run_query.rs
@codecov

codecov Bot commented Jul 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.02%. Comparing base (1659b43) to head (1c20bc2).
⚠️ Report is 13 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6219   +/-   ##
=======================================
  Coverage   96.02%   96.02%           
=======================================
  Files         269      269           
  Lines       67282    67330   +48     
=======================================
+ Hits        64606    64654   +48     
  Misses       2676     2676           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@alvarowolfx
alvarowolfx marked this pull request as ready for review July 30, 2026 14:44
@alvarowolfx
alvarowolfx requested a review from a team as a code owner July 30, 2026 14:44
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 BigQuery API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant