Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dry run support #30

Merged
merged 1 commit into from
Apr 10, 2024
Merged

Conversation

brosquinha
Copy link
Contributor

Context

It is good practice for BigQuery queries to be run in dry run mode before actually running the query when on-demand pricing model is used. That way, the total amount of bytes that a query would process can be known beforehand, enabling users to make fine adjustments to it in case the resulting costs are too high.

Currently, req_bigquery offers no support to run BigQuery queries in dry run mode, nor does it return the associated total bytes that the query processed.

Proposed solution

  • Add dry_run option to run queries in dry run mode;
  • Add resulting total_bytes_processed to ReqBigQuery.Result to present the result;

@josevalim josevalim merged commit f383ea6 into livebook-dev:main Apr 10, 2024
1 check passed
@josevalim
Copy link
Contributor

💚 💙 💜 💛 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants