Skip to content

Commit dfd5eae

Browse files
authored
fix: Fix delete sfv twice issue (feast-dev#3466)
fix delete sfv twice issue Signed-off-by: hao-affirm <[email protected]>
1 parent 1ef5137 commit dfd5eae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sdk/python/feast/feature_store.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,10 @@ def apply(
930930
views_to_delete = [
931931
ob
932932
for ob in objects_to_delete
933-
if isinstance(ob, FeatureView) or isinstance(ob, BatchFeatureView)
933+
if (
934+
(isinstance(ob, FeatureView) or isinstance(ob, BatchFeatureView))
935+
and not isinstance(ob, StreamFeatureView)
936+
)
934937
]
935938
request_views_to_delete = [
936939
ob for ob in objects_to_delete if isinstance(ob, RequestFeatureView)

0 commit comments

Comments
 (0)