Skip to content

Commit

Permalink
Changed default write disposition
Browse files Browse the repository at this point in the history
  • Loading branch information
keegansmith21 authored and jdddog committed Jun 26, 2023
1 parent 1e16b5c commit b3a5c03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions observatory-platform/observatory/platform/bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

# BigQuery single query byte limit.
# Daily limit is set in Terraform
BIGQUERY_SINGLE_QUERY_BYTE_LIMIT = int(2 * 2**40) # 2 TiB
BIGQUERY_SINGLE_QUERY_BYTE_LIMIT = int(2 * 2 ** 40) # 2 TiB


def assert_table_id(table_id: str):
Expand Down Expand Up @@ -328,7 +328,7 @@ def bq_load_table(
partition_field: Union[None, str] = None,
partition_type: bigquery.TimePartitioningType = bigquery.TimePartitioningType.DAY,
require_partition_filter=False,
write_disposition: str = bigquery.WriteDisposition.WRITE_TRUNCATE, # TODO: overwrite?
write_disposition: str = bigquery.WriteDisposition.WRITE_EMPTY,
table_description: str = "",
cluster: bool = False,
clustering_fields=None,
Expand Down

0 comments on commit b3a5c03

Please sign in to comment.