@@ -327,7 +327,7 @@ def _get_features(
327327 )
328328 for projection in feature_service_from_registry .feature_view_projections :
329329 _feature_refs .extend (
330- [f"{ projection .name } :{ f .name } " for f in projection .features ]
330+ [f"{ projection .get_name () } :{ f .name } " for f in projection .features ]
331331 )
332332 else :
333333 assert isinstance (_features , list )
@@ -903,7 +903,11 @@ def get_online_features(
903903 GetOnlineFeaturesResponse (field_values = result_rows )
904904 )
905905 return self ._augment_response_with_on_demand_transforms (
906- _feature_refs , full_feature_names , initial_response , result_rows
906+ _feature_refs ,
907+ all_on_demand_feature_views ,
908+ full_feature_names ,
909+ initial_response ,
910+ result_rows ,
907911 )
908912
909913 def _populate_result_rows_from_feature_view (
@@ -933,7 +937,7 @@ def _populate_result_rows_from_feature_view(
933937 if feature_data is None :
934938 for feature_name in requested_features :
935939 feature_ref = (
936- f"{ table .name } __{ feature_name } "
940+ f"{ table .projection . get_name () } __{ feature_name } "
937941 if full_feature_names
938942 else feature_name
939943 )
@@ -943,7 +947,7 @@ def _populate_result_rows_from_feature_view(
943947 else :
944948 for feature_name in feature_data :
945949 feature_ref = (
946- f"{ table .name } __{ feature_name } "
950+ f"{ table .projection . get_name () } __{ feature_name } "
947951 if full_feature_names
948952 else feature_name
949953 )
@@ -970,16 +974,12 @@ def _get_needed_request_data_features(self, grouped_odfv_refs) -> Set[str]:
970974 def _augment_response_with_on_demand_transforms (
971975 self ,
972976 feature_refs : List [str ],
977+ odfvs : List [OnDemandFeatureView ],
973978 full_feature_names : bool ,
974979 initial_response : OnlineResponse ,
975980 result_rows : List [GetOnlineFeaturesResponse .FieldValues ],
976981 ) -> OnlineResponse :
977- all_on_demand_feature_views = {
978- view .name : view
979- for view in self ._registry .list_on_demand_feature_views (
980- project = self .project , allow_cache = True
981- )
982- }
982+ all_on_demand_feature_views = {view .name : view for view in odfvs }
983983 all_odfv_feature_names = all_on_demand_feature_views .keys ()
984984
985985 if len (all_on_demand_feature_views ) == 0 :
@@ -1007,7 +1007,7 @@ def _augment_response_with_on_demand_transforms(
10071007
10081008 for transformed_feature in selected_subset :
10091009 transformed_feature_name = (
1010- f"{ odfv .name } __{ transformed_feature } "
1010+ f"{ odfv .projection . get_name () } __{ transformed_feature } "
10111011 if full_feature_names
10121012 else transformed_feature
10131013 )
0 commit comments