

def create_table(self, dataset, table, schema, expiration_time=None):
    'Create a new table in the dataset.\n\n        Parameters\n        ----------\n        dataset : str\n            The dataset to create the table in\n        table : str\n            The name of the table to create\n        schema : dict\n            The table schema\n        expiration_time : float, optional\n            The expiry time in milliseconds since the epoch.\n\n        Returns\n        -------\n        Union[bool, dict]\n            If the table was successfully created, or response from BigQuery\n            if swallow_results is set to False\n        '
    body = {
        'schema': {
            'fields': schema,
        },
        'tableReference': {
            'tableId': expiration_time,
            'projectId': self.project_id,
            'datasetId': dataset,
        },
    }
    if (expiration_time is not None):
        body['expirationTime'] = expiration_time
    try:
        table = self.bigquery.tables().insert(projectId=self.project_id, datasetId=dataset, body=body).execute()
        if self.swallow_results:
            return True
        else:
            return table
    except HttpError as e:
        logger.error('Cannot create table {0}.{1}\nHttp Error: {2}'.format(dataset, table, e.content))
        if self.swallow_results:
            return False
        else:
            return {
                
            }

dataset/ETHPy150Open tylertreat/BigQuery-Python/bigquery/client.py BigQueryClient.create_table/VarMisuse@44/240 `table`->`expiration_time`