From b96d1a7dccf333616c7f91b5972379f1e9fd11de Mon Sep 17 00:00:00 2001 From: hao-affirm <104030690+hao-affirm@users.noreply.github.com> Date: Thu, 26 Jan 2023 23:27:46 -0800 Subject: [PATCH] fix delete sfv twice issue Signed-off-by: hao-affirm <104030690+hao-affirm@users.noreply.github.com> --- sdk/python/feast/feature_store.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sdk/python/feast/feature_store.py b/sdk/python/feast/feature_store.py index afac34b665..fdf102f31d 100644 --- a/sdk/python/feast/feature_store.py +++ b/sdk/python/feast/feature_store.py @@ -930,7 +930,10 @@ def apply( views_to_delete = [ ob for ob in objects_to_delete - if isinstance(ob, FeatureView) or isinstance(ob, BatchFeatureView) + if ( + (isinstance(ob, FeatureView) or isinstance(ob, BatchFeatureView)) + and not isinstance(ob, StreamFeatureView) + ) ] request_views_to_delete = [ ob for ob in objects_to_delete if isinstance(ob, RequestFeatureView)