sdk/python/feast/infra/provider.py
def _get_requested_feature_views_to_features_dict(
    feature_refs: List[str], feature_views: List[FeatureView]
) -> Dict[FeatureView, List[str]]:
    """Create a dict of FeatureView -> List[Feature] for all requested features.
    Set full_feature_names to True to have feature names prefixed by their feature view name."""

    feature_views_to_feature_map: Dict[FeatureView, List[str]] = {}

    for ref in feature_refs:
        ref_parts = ref.split(":")
        feature_view_from_ref = ref_parts[0]
        feature_from_ref = ref_parts[1]

        found = False
        for feature_view_from_registry in feature_views:
            if feature_view_from_registry.name == feature_view_from_ref:
                found = True
                if feature_view_from_registry in feature_views_to_feature_map:
                    feature_views_to_feature_map[feature_view_from_registry].append(
                        feature_from_ref
                    )
                else:
                    feature_views_to_feature_map[feature_view_from_registry] = [
                        feature_from_ref
                    ]

        if not found:
            raise ValueError(f"Could not find feature view from reference {ref}")

    return feature_views_to_feature_map
Create a dict of FeatureView -> List[Feature] for all requested features.
    Set full_feature_names to True to have feature names prefixed by their feature view name.
Create a dict of FeatureView -> List[Feature] for all requested features.
Set full_feature_names to True to have feature names prefixed by their feature view name.
Create a dict of FeatureView - > List [ Feature ] for all requested features . Set full_feature_names to True to have feature names prefixed by their feature view name .
def _get_requested_feature_views_to_features_dict(
    feature_refs: List[str], feature_views: List[FeatureView]
) -> Dict[FeatureView, List[str]]:
    feature_views_to_feature_map: Dict[FeatureView, List[str]] = {}
    for ref in feature_refs:
        ref_parts = ref.split(":")
        feature_view_from_ref = ref_parts[0]
        feature_from_ref = ref_parts[1]
        found = False
        for feature_view_from_registry in feature_views:
            if feature_view_from_registry.name == feature_view_from_ref:
                found = True
                if feature_view_from_registry in feature_views_to_feature_map:
                    feature_views_to_feature_map[feature_view_from_registry].append(
                        feature_from_ref
                    )
                else:
                    feature_views_to_feature_map[feature_view_from_registry] = [
                        feature_from_ref
                    ]
        if not found:
            raise ValueError(f"Could not find feature view from reference {ref}")
    return feature_views_to_feature_map
def _get_requested_feature_views_to_features_dict ( feature_refs : List [ str ] , feature_views : List [ FeatureView ] ) -> Dict [ FeatureView , List [ str ] ] : feature_views_to_feature_map : Dict [ FeatureView , List [ str ] ] = { } for ref in feature_refs : ref_parts = ref . split ( ":" ) feature_view_from_ref = ref_parts [ 0 ] feature_from_ref = ref_parts [ 1 ] found = False for feature_view_from_registry in feature_views : if feature_view_from_registry . name == feature_view_from_ref : found = True if feature_view_from_registry in feature_views_to_feature_map : feature_views_to_feature_map [ feature_view_from_registry ] . append ( feature_from_ref ) else : feature_views_to_feature_map [ feature_view_from_registry ] = [ feature_from_ref ] if not found : raise ValueError ( f"Could not find feature view from reference {ref}" ) return feature_views_to_feature_map
Create a dict of FeatureView -> List[Feature] for all requested features.
Create a dict of FeatureView - > List [ Feature ] for all requested features .
"""Create a dict of FeatureView -> List[Feature] for all requested features.
    Set full_feature_names to True to have feature names prefixed by their feature view name."""
feature_refs
List[str]
feature_views
List[FeatureView]