Skip to content

Commit

Permalink
handling the else case for from_feature_view_definition
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
  • Loading branch information
franciscojavierarceo committed Sep 19, 2024
1 parent de4d6ce commit 082415f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sdk/python/feast/feature_view_projection.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ def from_feature_view_definition(feature_view: "FeatureView"):
or None,
batch_source=feature_view.batch_source or None,
)
else:
return FeatureViewProjection(
name=feature_view.name,
name_alias=None,
features=feature_view.features,
desired_features=[],
)

@staticmethod
def from_definition(base_feature_view: "BaseFeatureView"):
Expand Down

0 comments on commit 082415f

Please sign in to comment.