question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

test `read_gbq` with `dryRun` in `configuration` parameter

See original GitHub issue

Hello,

Recently a question featured on SO asking about running a read_gbq job with dryRun settings defined as True.

As it turns out, for what I could check, currently we can send query definitions but everything defined outside of query is discarded.

I wonder if it would be possible to also consider updating other values such as dryRun.

kwargs should probably be able to receive arguments such as configuration={"query": {...}, "dryRun": True}

and run_query probably would have to process job_config.update(config).

Best,

Will

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:6
  • Comments:6

github_iconTop GitHub Comments

2reactions
tswastcommented, Mar 26, 2018

I’ve confirmed that dryRun queries do work upstream in https://github.com/GoogleCloudPlatform/google-cloud-python/pull/5119 . I think pandas-gbq will need to check for dry run queries and decide not to try to fetch the results.

0reactions
ramicazacommented, Sep 25, 2022

any progress on this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

test read_gbq with dryRun in configuration parameter #88
Hello,. Recently a question featured on SO asking about running a read_gbq job with dryRun settings defined as True .
Read more >
How can I send the dryRun parameter to pandas.read_gbq ...
I would like to get an estimate of the query size from bigquery before running it to load into pandas dataframe. How can...
Read more >
Issue a query dry run | BigQuery - Google Cloud
Describes the use of a query dry run and shows how to perform a dry run using the Cloud console, bq command-line, and...
Read more >
pandas.read_gbq — pandas 1.5.2 documentation
0 of pandas-gbq. configurationdict, optional. Query config parameters for job processing. For example: configuration = {'query': ...
Read more >
How To Perform A Dry Run Query With Google BigQuery API ...
A dry run query is a query that does not return any record but is used to estimate the computed power required to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found