Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fc00ca8

Browse files
authored
fix: Delete data sources from registry when using the diffing logic (#2669)
Signed-off-by: Achal Shah <[email protected]>
1 parent ab78702 commit fc00ca8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

sdk/python/feast/diff/registry_diff.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,11 @@ def apply_diff_to_registry(
295295
registry.delete_feature_view(
296296
feature_view_obj.name, project, commit=False,
297297
)
298+
elif feast_object_diff.feast_object_type == FeastObjectType.DATA_SOURCE:
299+
ds_obj = cast(DataSource, feast_object_diff.current_feast_object)
300+
registry.delete_data_source(
301+
ds_obj.name, project, commit=False,
302+
)
298303

299304
if feast_object_diff.transition_type in [
300305
TransitionType.CREATE,

sdk/python/feast/infra/offline_stores/file.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ def evaluate_historical_retrieval():
187187
entity_df_event_timestamp_col
188188
)
189189

190-
join_keys = []
191190
all_join_keys = []
192191

193192
# Load feature view data from sources and join them incrementally

0 commit comments

Comments
 (0)