Skip to content

Conversation

@ntkathole
Copy link
Member

What this PR does / why we need it:

On-Demand Feature Views (ODFVs) with write_to_online_store=True were not persisting transformed values during materialization.

The root causes were:

  • Missing ODFV materialization logic in FeatureStore.materialize() and materialize_incremental() methods.
  • Incorrect type detection in utils._convert_arrow_to_proto() causing ODFVs to be treated as regular FeatureViews.

Added integration tests covering:

  • Single-source ODFV materialization
  • Multi-source ODFV materialization
  • Incremental materialization with ODFVs
  • Mixed on-write/on-read ODFV scenarios (reproduces original issue)
  • Multiple write methods (materialize, write_to_online_store, etc.)

Which issue(s) this PR fixes:

Fixes #5430

Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
@ntkathole ntkathole self-assigned this Jul 21, 2025
@ntkathole ntkathole requested a review from a team as a code owner July 21, 2025 19:18
Copy link
Member

@franciscojavierarceo franciscojavierarceo left a comment

Choose a reason for hiding this comment

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

nice, thank you!

@ntkathole ntkathole merged commit 271ef74 into feast-dev:master Jul 21, 2025
19 checks passed
@HaoXuAI
Copy link
Collaborator

HaoXuAI commented Jul 22, 2025

This is awesome. @ntkathole, what do you think of refactoring the OnDemandFeatureView to inherit from FeatureView, so that it can use the compute engine?

@ntkathole
Copy link
Member Author

This is awesome. @ntkathole, what do you think of refactoring the OnDemandFeatureView to inherit from FeatureView, so that it can use the compute engine?

That will be great, created #5531

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.

Bug: On-Demand Feature Views (ODFV) on-write transformations not persisting

3 participants