destinations.impl.bigquery.bigquery
BigQueryClient Objects
class BigQueryClient(SqlJobClientWithStaging, SupportsStagingDestination)
restore_file_load
def restore_file_load(file_path: str) -> LoadJob
Returns a completed SqlLoadJob or restored BigQueryLoadJob
See base class for details on SqlLoadJob.
BigQueryLoadJob is restored with a job ID derived from file_path
.
Arguments:
file_path
str - a path to a job file.
Returns:
LoadJob
- completed SqlLoadJob or restored BigQueryLoadJob
get_storage_tables
def get_storage_tables(
table_names: Iterable[str]
) -> Iterable[Tuple[str, TTableSchemaColumns]]
Gets table schemas from BigQuery using INFORMATION_SCHEMA or get_table for hidden datasets