MCPcopy Index your code
hub / github.com/feast-dev/feast / _infer_fv_classes

Method _infer_fv_classes

sdk/python/feast/infra/registry/sql.py:1169–1180  ·  view source on GitHub ↗
(self, feature_view)

Source from the content-addressed store, hash-verified

1167 return table
1168
1169 def _infer_fv_classes(self, feature_view):
1170 if isinstance(feature_view, LabelView):
1171 python_class, proto_class = LabelView, LabelViewProto
1172 elif isinstance(feature_view, StreamFeatureView):
1173 python_class, proto_class = StreamFeatureView, StreamFeatureViewProto
1174 elif isinstance(feature_view, FeatureView):
1175 python_class, proto_class = FeatureView, FeatureViewProto
1176 elif isinstance(feature_view, OnDemandFeatureView):
1177 python_class, proto_class = OnDemandFeatureView, OnDemandFeatureViewProto
1178 else:
1179 raise ValueError(f"Unexpected feature view type: {type(feature_view)}")
1180 return python_class, proto_class
1181
1182 def _infer_fv_type_string(self, feature_view) -> str:
1183 from feast.labeling.label_view import LabelView

Callers 1

apply_materializationMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected