Skip to content

Commit

Permalink
Fix bug caused by downgrading pydantic from 2 to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
lspataroG committed Jul 16, 2024
1 parent 0a5a95d commit becb2f1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ def initialize_bq_vector_index(cls, values: dict) -> dict:
"""
from google.cloud import bigquery # type: ignore[attr-defined]

values["_creating_index"] = values.get("_creating_index", False)
values["_have_index"] = values.get("_have_index", False)
values["_last_index_check"] = values.get("_last_index_check", datetime.min)

if values.get("_have_index") or values.get("_creating_index"):
return values

Expand Down

0 comments on commit becb2f1

Please sign in to comment.