Skip to content

Commit 98ad1bb

Browse files
committed
ruff format
1 parent 100f34b commit 98ad1bb

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

parsons/google/google_bigquery.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)