Skip to content

Commit

Permalink
fix: Delete data sources from registry when using the diffing logic (#…
Browse files Browse the repository at this point in the history
…2669)

Signed-off-by: Achal Shah <[email protected]>
  • Loading branch information
achals authored May 11, 2022
1 parent ab78702 commit fc00ca8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions sdk/python/feast/diff/registry_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,11 @@ def apply_diff_to_registry(
registry.delete_feature_view(
feature_view_obj.name, project, commit=False,
)
elif feast_object_diff.feast_object_type == FeastObjectType.DATA_SOURCE:
ds_obj = cast(DataSource, feast_object_diff.current_feast_object)
registry.delete_data_source(
ds_obj.name, project, commit=False,
)

if feast_object_diff.transition_type in [
TransitionType.CREATE,
Expand Down
1 change: 0 additions & 1 deletion sdk/python/feast/infra/offline_stores/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ def evaluate_historical_retrieval():
entity_df_event_timestamp_col
)

join_keys = []
all_join_keys = []

# Load feature view data from sources and join them incrementally
Expand Down

0 comments on commit fc00ca8

Please sign in to comment.