File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -473,7 +473,6 @@ def copy_from_gcs(
473473 custom_schema = schema ,
474474 template_table = template_table ,
475475 source_column_match = source_column_match ,
476-
477476 )
478477
479478 # load CSV from Cloud Storage into BigQuery
@@ -1495,19 +1494,14 @@ def _process_job_config(
14951494
14961495 if not job_config .source_format :
14971496 data_type_mappings = {
1498-
14991497 "csv" : bigquery .SourceFormat .CSV ,
15001498 "parquet" : bigquery .SourceFormat .PARQUET ,
15011499 "datastore_backup" : bigquery .SourceFormat .DATASTORE_BACKUP ,
15021500 "newline_delimited_json" : bigquery .SourceFormat .NEWLINE_DELIMITED_JSON ,
15031501 "avro" : bigquery .SourceFormat .AVRO ,
15041502 "orc" : bigquery .SourceFormat .ORC ,
1505-
15061503 }
1507- job_config .source_format = (
1508- data_type_mappings [data_type ]
1509-
1510- )
1504+ job_config .source_format = data_type_mappings [data_type ]
15111505
15121506 if not job_config .source_column_match :
15131507 job_config .source_column_match = source_column_match
You can’t perform that action at this time.
0 commit comments