← 输入框|github.com|刷新
Skip to content

fix: suggest available feature views when a lookup misses - #7059

Open
Mrun25 wants to merge 1 commit into
feast-dev:masterfrom
Mrun25:fix/fv-not-found-suggestions-5606
Open

Mrun25 wants to merge 1 commit into
feast-dev:masterfrom
Mrun25:fix/fv-not-found-suggestions-5606

Conversation

@Mrun25

@Mrun25 Mrun25 commented Oct 22, 2026

Copy link
Copy Markdown

What this PR does / why we need it:

When a registry lookup references a feature view name that does not exist in the project, FeatureViewNotFoundException only says the name was not found. A common way to hit this is copying the project-prefixed online store table name (online tables are named {project}_{feature_view}) into a feature reference, as in #5606 - the error then reads like a registry or materialization bug even though the feature view exists under its real name.

With this change the exception suggests close matches from the registry when there are any:

Feature view customer_credit_risk_customer_credit_risk_feature_view does not exist in project customer_credit_risk. Did you mean: customer_credit_risk_feature_view?

The suggestion is computed in proto_registry_utils.get_any_feature_view (the lookup path behind get_online_features) with difflib.get_close_matches over all feature-view collections in the project; when nothing is close, the message is unchanged.

Which issue(s) this PR fixes:

Fixes #5606

Testing

  • Added unit tests covering both the close-match suggestion and the unchanged no-match message in tests/unit/infra/registry/test_proto_registry_utils.py
  • Registry unit suite passes (56/56 locally, excluding remote/snowflake registry modules that need optional deps)
  • Reproduced the FeatureStore.get_online_features() throws FeatureViewNotFoundException #5606 scenario end to end: the project-prefixed ref now gets the suggestion, the correct ref still resolves

When a registry lookup references a feature view name that does not
exist in the project (for example the project-prefixed online store
table name), FeatureViewNotFoundException now suggests close matches
from the registry so the mistake is self-correcting.

Fixes feast-dev#5606

Signed-off-by: Mrun25 <165297479+Mrun25@users.noreply.github.com>
@Mrun25
Mrun25 requested a review from a team as a code owner October 22, 2026 03:36
Copilot AI balanced review requested due to automatic review settings October 22, 2026 03:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FeatureStore.get_online_features() throws FeatureViewNotFoundException

3 participants