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 (#4509)

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

Signed-off-by: gesche <26026582+jgesche@users.noreply.github.com>
  • Loading branch information
jgesche authored Sep 21, 2024
1 parent 163d34f commit 9a0398e
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 9a0398e

Please sign in to comment.