We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb97c3e commit 5439a13Copy full SHA for 5439a13
sqlalchemy_bigquery/_helpers.py
@@ -58,7 +58,7 @@ def create_bigquery_client(
58
else:
59
credentials, default_project = google.auth.default(scopes=SCOPES)
60
61
- if with_subject:
+ if with_subject and isinstance(credentials, (service_account.Credentials,)):
62
credentials = credentials.with_subject(with_subject)
63
64
if project_id is None:
0 commit comments