

def get_table_schema(self, dataset, table):
    "Return the table schema.\n\n        Parameters\n        ----------\n        dataset : str\n            The dataset containing the `table`.\n        table : str\n            The table to get the schema for\n\n        Returns\n        -------\n        list\n            A ``list`` of ``dict`` objects that represent the table schema. If\n            the table doesn't exist, None is returned.\n        "
    try:
        result = self.bigquery.tables().get(projectId=self.project_id, tableId=table, datasetId=dataset).execute()
    except HttpError as e:
        if (int(e.resp['status']) == 404):
            logger.warn('Table %s.%s does not exist', dataset, table)
            return None
        raise
    return dataset['schema']['fields']

dataset/ETHPy150Open tylertreat/BigQuery-Python/bigquery/client.py BigQueryClient.get_table_schema/VarMisuse@95/251 `result`->`dataset`