feast icon indicating copy to clipboard operation
feast copied to clipboard

Feature view does not exist error in on-demand feature view

Open ndenStanford opened this issue 7 months ago • 2 comments

I am trying to run the on-demand feature view but not able to execute it correctly. The example section on this manual page also does not provide a valid link as shown below.

See https://github.com/feast-dev/on-demand-feature-views-demo for an example on how to use on-demand feature views.

Any solution or suggestion is greatly appreciated.

Expected Behavior

One-demand feature successfully generates the new feature.

Current Behavior

One-demand feature does not work when running "get_historical_features" encountering the following error

Exception has occurred: FeatureViewNotFoundException
Feature view generate_label_feature_view does not exist

Steps to reproduce

@on_demand_feature_view(
    sources=[
        feature_view 
    ],
    schema=[
        Field(name='topic', dtype=String),
    ]
)
def generate_label_feature_view(features_df: pd.DataFrame) -> pd.DataFrame:
    df = pd.DataFrame()
    df['topic'] = [
            generate_label(title, content)
            for title, content in zip(
                features_df["title"].values, features_df["content"].values
            )
        ]
    return df

Specifications

  • Version: 0.36
  • Platform: Ubuntu
  • Subsystem:

Possible Solution

ndenStanford avatar Jul 20 '24 17:07 ndenStanford