File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1019,7 +1019,7 @@ def apply(
10191019
10201020 # Create ODFV with same transformation logic and correct mode
10211021 # Include both FeatureViews and RequestSources in sources
1022- sources_list = list (fv .source_views or [])
1022+ sources_list : List [ Union [ FeatureView , RequestSource ]] = list (fv .source_views or [])
10231023 if hasattr (fv , "source_request_sources" ) and fv .source_request_sources :
10241024 sources_list .extend (fv .source_request_sources .values ())
10251025
@@ -1293,9 +1293,9 @@ def get_historical_features(
12931293
12941294 # Handle FeatureViews with feature_transformation for historical retrieval
12951295 # These are supported by extracting their source views and applying transformations later
1296- regular_feature_views = []
1297- unified_transformation_views = []
1298- source_feature_views = []
1296+ regular_feature_views : List [ Union [ FeatureView , OnDemandFeatureView ]] = []
1297+ unified_transformation_views : List [ Tuple [ Union [ FeatureView , OnDemandFeatureView ], List [ str ]]] = []
1298+ source_feature_views : List [ Union [ FeatureView , OnDemandFeatureView ]] = []
12991299
13001300 # Separate FeatureViews with transformations from regular ones
13011301 for fv , features_list in fvs :
Original file line number Diff line number Diff line change @@ -529,7 +529,8 @@ def _group_feature_refs(
529529 # Redirect if:
530530 # 1. Feature exists in original view but online serving is disabled, OR
531531 # 2. Feature doesn't exist in original view at all
532- if feat_name in feature_names_in_original and not original_view .online :
532+ if (feat_name in feature_names_in_original
533+ and hasattr (original_view , 'online' ) and not original_view .online ):
533534 should_redirect = True
534535 elif feat_name not in feature_names_in_original :
535536 should_redirect = True
You can’t perform that action at this time.
0 commit comments