google-cloud-python icon indicating copy to clipboard operation
google-cloud-python copied to clipboard

Error fetching results from a BigQuery asynchronous call in 0.19.0

Open georgegiovanni opened this issue 10 years ago • 1 comments

Referring to the doc, calling QueryResults.fetch_data raises an exception since self.name is None:

if self.name is None:
    raise ValueError("Query not yet executed:  call 'run()'")

However, if QueryResults.run is called, an exception is also raised since self._job already exists:

if self._job is not None:
    raise ValueError("Query job is already running.")

georgegiovanni avatar Sep 20 '16 22:09 georgegiovanni

@georgegiovanni Thanks for the report!

tseaver avatar Sep 21 '16 17:09 tseaver