Skip to content

BigQuery: jobs created with run_async_query() and run with begin() ignores flag dry_run=True #2981

@sean185

Description

@sean185

The aim is to be able to dry run the queries to check how much it would cost us before we actually proceed with it. Hopefully we will be able to use it as a safety mechanism.

I hope I am not misunderstanding the availability of the dry_run parameter as listed on the docs. I have set it, and it appears on the configs, but it runs anyway.

  1. Ubuntu 14.04

  2. Python 2.7.6

  3. google-cloud-python version

google-api-python-client==1.5.5
google-auth==0.5.0
google-auth-httplib2==0.0.2
google-cloud-bigquery==0.22.0
google-cloud-core==0.22.1
google-cloud-storage==0.22.0
googleapis-common-protos==1.5.0
  1. Stacktrace if available
    NIL

  2. Steps to reproduce

  • create job with run_async_query()
  • set job.dry_run = True
  • run it with job.begin()
  • examine job when it is done
  1. Code example
job = client.run_async_query(JOB_NAME, QUERY_STRING)
job.dry_run = True
job.begin()
print job.__dict__

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the BigQuery API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions