Skip to content

Commit

Permalink
dont update for non-scylladb
Browse files Browse the repository at this point in the history
  • Loading branch information
zabarn committed Oct 16, 2024
1 parent a50905c commit a16e1f2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sdk/python/feast/expediagroup/provider/expedia.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,12 @@ def update_infra(
partial: bool,
materialization_update: bool = False,
):
scylla_no_lazy_table_creation = self.repo_config.online_store.type == "scylladb" and not getattr(
self.repo_config.online_store, "lazy_table_creation", False
)

if self.online_store:
if materialization_update or not getattr(
self.repo_config.online_store, "lazy_table_creation", False
):
if materialization_update or scylla_no_lazy_table_creation:
self.online_store.update(
config=self.repo_config,
tables_to_delete=tables_to_delete,
Expand Down

0 comments on commit a16e1f2

Please sign in to comment.