Skip to content

Commit 49ec473

Browse files
fix: Small fix to BigQuery quota project parameter implementation (#1632)
* Fix: Quota project optional parameter was not working properly. A small fix was necessary on cleints.py * style: Reformat clients.py --------- Co-authored-by: Neil Johnson <neiljohnson@google.com>
1 parent 5ef95ce commit 49ec473

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

data_validation/clients.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,10 @@ def get_bigquery_client(
159159
quota_project_id=client_project_id,
160160
)
161161

162+
billing_project = client_project_id if client_project_id else project_id
163+
162164
return bigquery_connect(
163-
project_id=project_id,
165+
project_id=billing_project,
164166
dataset_id=dataset_id,
165167
credentials=credentials,
166168
bigquery_client=google_client,

0 commit comments

Comments
 (0)