Repository navigation
feat: Add feature view versioning support to Hybrid online store - #7014
Open
PragalvaXFREZ wants to merge 1 commit into
Open
PragalvaXFREZ wants to merge 1 commit into
PragalvaXFREZ wants to merge 1 commit into
Conversation
Signed-off-by: Pragalva Sapkota <sapkotapragalva@gmail.com>
4 of 6 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
HybridOnlineStoresends each feature view to a backend chosen by a tag. It already passes the fullRepoConfig, includingregistry.enable_online_feature_view_versioning, to that backend. Versioned writes and reads therefore already go to versioned tables on backends that support them. But the store-level check inOnlineStore.get_online_featuresrejected every version-qualified ref (for exampledriver_stats@v2:trips_today) withVersionedOnlineReadNotSupported, becauseHybridOnlineStoreis not in the supported list.This PR:
_check_versioned_read_supportinHybridOnlineStore. Support depends on the routed backend, and the base check runs before the repo config is available.online_read, runs the routed backend's_check_versioned_read_supportfor version-qualified refs. Unsupported backends still raiseVersionedOnlineReadNotSupported, now naming the backend class.Which issue(s) this PR fixes:
Fixes #6176
Checks
git commit -s)Testing Strategy
sdk/python/tests/unit/infra/online_store/test_hybrid_online_versioning.py): the two support-check tests fail onmasterand pass with this change. A SQLite-backed round trip checks that v1 and v2 data stay separate.Misc
The round-trip test builds a fresh
RepoConfigfor each call because_prepare_repo_confmutates the config it receives. That bug is tracked separately in #6768 / #6769.Note: outside of tests, reading several feature views in one request through Hybrid also needs #6769. Without it, Hybrid fails on its own because of #6768, with or without versioning.