Skip to content

Commit

Permalink
Remove custom retry in get_table call (#1423)
Browse files Browse the repository at this point in the history
* remove custom retry in get_table call

* changelog

(cherry picked from commit 26c19e9)
  • Loading branch information
mikealfare authored and github-actions[bot] committed Dec 5, 2024
1 parent 7c63e39 commit db66667
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .changes/unreleased/Fixes-20241205-133606.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Fixes
body: Fix issue where rate limit errors on table service calls are not retried
time: 2024-12-05T13:36:06.436005-05:00
custom:
Author: mikealfare
Issue: "1423"
5 changes: 1 addition & 4 deletions dbt/adapters/bigquery/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,10 +519,7 @@ def get_bq_table(self, database, schema, identifier) -> Table:
# backwards compatibility: fill in with defaults if not specified
database = database or conn.credentials.database
schema = schema or conn.credentials.schema
return client.get_table(
table=self.table_ref(database, schema, identifier),
retry=self._retry.create_reopen_with_deadline(conn),
)
return client.get_table(self.table_ref(database, schema, identifier))

def drop_dataset(self, database, schema) -> None:
conn = self.get_thread_connection()
Expand Down

0 comments on commit db66667

Please sign in to comment.