Skip to content

BigQuery dataset.list_tables() fails when the dataset is empty #1419

@evmin

Description

@evmin

Good day.

Getting this exception when the BigQuery dataset contains no tables:

  File "/Library/Python/2.7/site-packages/gcloud/bigquery/dataset.py", line 507, in list_tables
    for resource in resp['tables']]
KeyError: 'tables'

Mac OS X El Capitan. gcloud 0.8.0

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the BigQuery API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions