Skip to content

feat: Add hybrid to ValidOfflineStoreDBStorePersistenceTypes for HybridOfflineStore support - #6707

Open
sanskar-singh-2403 wants to merge 1 commit into
feast-dev:masterfrom
sanskar-singh-2403:feat/hybrid-offline-store-persistence
Open

feat: Add hybrid to ValidOfflineStoreDBStorePersistenceTypes for HybridOfflineStore support#6707
sanskar-singh-2403 wants to merge 1 commit into
feast-dev:masterfrom
sanskar-singh-2403:feat/hybrid-offline-store-persistence

Conversation

@sanskar-singh-2403

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

The Feast SDK supports HybridOfflineStore, which routes offline operations to
different backends based on each FeatureView's batch_source. However, the Feast
Operator's FeatureStore CRD did not include hybrid in
ValidOfflineStoreDBStorePersistenceTypes, so setting type: hybrid in the CR
failed admission validation and blocked configuring it via the secret
pass-through mechanism, even though the SDK and server fully support it.

This mirrors the online store fix in #5810 (commit 678589b), applied to the
offline store:

  • Register hybrid in OFFLINE_STORE_CLASS_FOR_TYPE in
    sdk/python/feast/repo_config.py so the type resolves to HybridOfflineStore.
    The SDK map previously carried this alias only for the online store, so
    type: hybrid was already valid online but not offline.
  • Add hybrid to the offline DB store enum and
    ValidOfflineStoreDBStorePersistenceTypes in both api/v1 and api/v1alpha1.
  • Regenerate the CRD manifests (config/crd/bases, dist/install.yaml,
    bundle/manifests) with controller-gen v0.18.0.
  • Update the offline hybrid doc to use the short type: hybrid form, matching the
    online doc change in fix: Add hybrid online store to ONLINE_STORE_CLASS_FOR_TYPE mapping #5810.

No other operator changes are needed: the existing secret pass-through mechanism
already handles the full hybrid config, identically to how it works for the online
hybrid store.

Which issue(s) this PR fixes:

Fixes #6701

Checks

  • I've made sure the tests are passing.
  • My commits are signed off (git commit -s)
  • My PR title follows conventional commits format

Testing Strategy

  • Unit tests
  • Integration tests
  • Manual tests
  • Testing is not required for this change

Misc

Verification performed locally:

  • go build ./... and go vet ./api/... ./internal/... in infra/feast-operator both pass.
  • CRD regeneration produces exactly the four offline enum additions (both API versions x both the top-level and nested spec paths); no unintended manifest drift.
  • Confirmed in a live SDK environment that hybrid is now in OFFLINE_STORE_CLASS_FOR_TYPE, resolves to HybridOfflineStore, and get_offline_config_from_type("hybrid") returns HybridOfflineStoreConfig. This keeps the operator's test/data-source-types cross-check (operator persistence types vs the SDK store maps) consistent in both directions.

@sanskar-singh-2403
sanskar-singh-2403 requested a review from a team as a code owner August 5, 2026 15:28
@sanskar-singh-2403
sanskar-singh-2403 force-pushed the feat/hybrid-offline-store-persistence branch from 162648c to e6258ea Compare August 5, 2026 15:30
@codecov-commenter

codecov-commenter commented Aug 5, 2026

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 46.77%. Comparing base (a1e6fc2) to head (739703c).
⚠️ Report is 1 commits behind head on master.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #6707   +/-   ##
=======================================
  Coverage   46.77%   46.77%           
=======================================
  Files         414      414           
  Lines       50191    50191           
  Branches     7181     7181           
=======================================
  Hits        23475    23475           
  Misses      25077    25077           
  Partials     1639     1639           
Flag Coverage Δ
go-feature-server 30.58% <ø> (ø)
python-unit 48.10% <ø> (ø)
Files with missing lines Coverage Δ
sdk/python/feast/repo_config.py 78.72% <ø> (ø)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4efb86c...739703c. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…idOfflineStore support

The Feast SDK supports HybridOfflineStore, which routes offline operations to
different backends based on each FeatureView's batch_source, but the operator's
FeatureStore CRD did not allow type: hybrid in the offline store persistence
enum, blocking configuration via the CR.

Mirrors the online store fix in feast-dev#5810:
- Register hybrid in OFFLINE_STORE_CLASS_FOR_TYPE so the type resolves to
  HybridOfflineStore (the SDK map previously had this only for the online store).
- Add hybrid to the offline DB store enum and ValidOfflineStoreDBStorePersistenceTypes
  in both api/v1 and api/v1alpha1, and regenerate the CRD manifests
  (config/crd/bases, dist/install.yaml, bundle/manifests).
- Update the offline hybrid doc to use the short type: hybrid form.

Fixes feast-dev#6701

Signed-off-by: Sanskar Singh <sanskarsinghty1234@gmail.com>
@sanskar-singh-2403
sanskar-singh-2403 force-pushed the feat/hybrid-offline-store-persistence branch from e6258ea to 739703c Compare August 5, 2026 15:40
@sanskar-singh-2403

Copy link
Copy Markdown
Contributor Author

@ntkathole the test timed out ig, can we re-run this?

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.

Add hybrid to ValidOfflineStoreDBStorePersistenceTypes for HybridOfflineStore support

3 participants