Skip to content

Commit

Permalink
fix(bigquery): do not overwrite the entire default query job config
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored and gforsyth committed Mar 5, 2024
1 parent 26d103d commit b42fb1c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ibis/backends/bigquery/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,11 @@ def do_connect(
location=location,
)

self.client.default_query_job_config = bq.QueryJobConfig(
use_legacy_sql=False, allow_large_results=True
)
if self.client.default_query_job_config is None:
self.client.default_query_job_config = bq.QueryJobConfig()

self.client.default_query_job_config.use_legacy_sql = False
self.client.default_query_job_config.allow_large_results = True

if storage_client is not None:
self.storage_client = storage_client
Expand Down

0 comments on commit b42fb1c

Please sign in to comment.