Skip to content

Error fetching results from a BigQuery asynchronous call in 0.19.0 #2368

Closed

Description

@georgegiovanni

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.")

Activity

  1. added
    api: bigquery
    on Sep 20, 2016
  2. added
    type: bug
    on Sep 21, 2016
  3. self-assigned this
    on Sep 21, 2016
  4. tseaver commented on Sep 21, 2016

    @tseaver
    Contributor

    @georgegiovanni Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: bigquerytype: bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions