Skip to content

Comments

fix: Check duplicate names for feature view across types#5999

Open
Prathap-P wants to merge 4 commits intofeast-dev:masterfrom
Prathap-P:featureview_name_collision
Open

fix: Check duplicate names for feature view across types#5999
Prathap-P wants to merge 4 commits intofeast-dev:masterfrom
Prathap-P:featureview_name_collision

Conversation

@Prathap-P
Copy link
Contributor

@Prathap-P Prathap-P commented Feb 21, 2026

What this PR does / why we need it:

  • This PR enforces cross-type feature view name uniqueness to fix a bug (Enforce unique feature view names across all feature view types during apply #5995).
  • Previously, get_online_features resolved feature view names via get_any_feature_view, which checks registry tables in a fixed order: FeatureView → StreamFeatureView → OnDemandFeatureView.
  • If a project registered both a FeatureView and StreamFeatureView with the same name, every get_online_features call would silently return the FeatureView, even when the StreamFeatureView contained fresher data

Which issue(s) this PR fixes:

Fixes #5995

Misc


Open with Devin

@Prathap-P Prathap-P requested a review from a team as a code owner February 21, 2026 12:10
devin-ai-integration[bot]

This comment was marked as resolved.

Signed-off-by: Prathap P <436prathap@gmail.com>
@Prathap-P Prathap-P force-pushed the featureview_name_collision branch 3 times, most recently from f23ff7b to 77cc24c Compare February 21, 2026 13:18
Signed-off-by: Prathap P <436prathap@gmail.com>
@Prathap-P Prathap-P force-pushed the featureview_name_collision branch from 77cc24c to c299a71 Compare February 21, 2026 13:19
@Prathap-P Prathap-P changed the title check duplicate names for feature view across types fix: check duplicate names for feature view across types Feb 21, 2026
@Prathap-P Prathap-P changed the title fix: check duplicate names for feature view across types fix: Check duplicate names for feature view across types Feb 21, 2026

# Check StreamFeatureView before FeatureView since StreamFeatureView is a subclass
# Note: All getters raise FeatureViewNotFoundException (not type-specific exceptions)
if isinstance(feature_view, StreamFeatureView):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this mean it will call to retrieve feature view many times? Can we optimize it?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enforce unique feature view names across all feature view types during apply

2 participants