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.
- Mac (OSX El Capitan) Version 10.11.6
- Anaconda Python 2.7.11 :: Continuum Analytics, Inc. in virtual environment
- google-cloud==0.20.0
- Code example
dataset = client.dataset(my_dataset)
table = dataset.table(my_table)
print table.schema
- Output
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.