Skip to content

Cannot get table schema #2756

@tuanavu

Description

@tuanavu

I want to get the schema of any tables in BigQuery in json format.

However, I cannot get the table schema of a table using the gcloud api. It just returns an empty list.

  1. Mac (OSX El Capitan) Version 10.11.6
  2. Anaconda Python 2.7.11 :: Continuum Analytics, Inc. in virtual environment
  3. google-cloud==0.20.0
  4. Code example
dataset = client.dataset(my_dataset)
table = dataset.table(my_table)

print table.schema
  1. Output
[]

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