Skip to content

Commit

Permalink
fix: Fixes validator field access for 'project_id' in BigQuery offlin…
Browse files Browse the repository at this point in the history
…e Store (feast-dev#4509)

Fixes validator field access for 'billing_project_id' in BigQuery Offline Store

Signed-off-by: gesche <[email protected]>
  • Loading branch information
jgesche authored and tmihalac committed Sep 23, 2024
1 parent 3af1dc2 commit 9930437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/python/feast/infra/offline_stores/bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class BigQueryOfflineStoreConfig(FeastConfigBaseModel):

@field_validator("billing_project_id")
def project_id_exists(cls, v, values, **kwargs):
if v and not values["project_id"]:
if v and not values.data["project_id"]:
raise ValueError(
"please specify project_id if billing_project_id is specified"
)
Expand Down

0 comments on commit 9930437

Please sign in to comment.