Python BigQuery API - get table schema
问题 I am trying to fetch schema form bigquery table. Given a sample code like from google.cloud import bigquery from google.cloud import storage client = bigquery.Client.from_service_account_json('service_account.json') def test_extract_schema(client): project = 'bigquery-public-data' dataset_id = 'samples' table_id = 'shakespeare' dataset_ref = client.dataset(dataset_id, project=project) table_ref = dataset_ref.table(table_id) table = client.get_table(table_ref) # API Request # View table