Title: FeatureService cannot pin a specific FeatureView/OnDemandFeatureView version · Issue #6717 · feast-dev/feast · GitHub
Open Graph Title: FeatureService cannot pin a specific FeatureView/OnDemandFeatureView version · Issue #6717 · feast-dev/feast
X Title: FeatureService cannot pin a specific FeatureView/OnDemandFeatureView version · Issue #6717 · feast-dev/feast
Description: Problem A FeatureService exists to freeze the exact feature definitions a model was trained and served on. Today it cannot pin a specific feature view version — it always resolves to the active (promoted) version. Feast's own docs name t...
Open Graph Description: Problem A FeatureService exists to freeze the exact feature definitions a model was trained and served on. Today it cannot pin a specific feature view version — it always resolves to the active (pr...
X Description: Problem A FeatureService exists to freeze the exact feature definitions a model was trained and served on. Today it cannot pin a specific feature view version — it always resolves to the active (pr...
Opengraph URL: https://github.com/feast-dev/feast/issues/6717
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"FeatureService cannot pin a specific FeatureView/OnDemandFeatureView version","articleBody":"### Problem\n\nA `FeatureService` exists to freeze the exact feature definitions a model was\ntrained and served on. Today it cannot pin a specific feature view **version** —\nit always resolves to the active (promoted) version. Feast's own docs name this\nlimitation verbatim on the [alpha feature-view-versioning page](https://docs.feast.dev/reference/alpha-feature-view-versioning):\n\n> **Feature services** — Feature services always resolve to the active (promoted)\n> version. `--no-promote` versions are not served until promoted.\n\nBuilding a service from a version-pinned `FeatureView` silently falls back to the\npromoted version:\n\n```python\nfv = FeatureView(name=\"driver_stats\", version=\"v2\", ...)\nsvc = FeatureService(name=\"model_v1\", features=[fv[[\"conv_rate\"]]])\nsvc.feature_view_projections[0].version_tag # -> None (should be 2)\nsvc.feature_view_projections[0].name_to_use() # -> \"driver_stats\" (should be \"driver_stats@v2\")\n```\n\n### Root cause\n\n1. `FeatureService.__init__` appends the source view's projection without\n translating its `version` string into `projection.version_tag` (the field\n `name_to_use()` checks to render `fv@v2`).\n2. `utils._get_feature_views_to_use` hard-codes the version as `None` for the\n `FeatureService` branch, so retrieval always falls through to the promoted\n snapshot via `get_any_feature_view`.\n\nWhile fixing this, a second pre-existing bug surfaced: **offline** retrieval of a\nversion-pinned `OnDemandFeatureView` fails. Offline stores re-fetch ODFVs from the\nregistry via an unversioned `registry.list_on_demand_feature_views`, so a pinned\nODFV ref (`odfv@v1:feat`) raises `ValueError: Could not find feature view from\nreference ...` or silently drops the ODFV's features. Every offline backend is\naffected (they funnel through `OnDemandFeatureView.get_requested_odfvs` or\n`offline_utils.get_feature_view_query_context`, plus dask's inline duplicate).\n\n### Proposal\n\n- Capture the pinned version into the service's projection, and read it back at\n retrieval time (fixes both online and offline for plain FeatureViews, which\n share `_get_feature_views_to_use`).\n- Add a clean pinning API: allow plain string refs as `FeatureService.features`\n entries (`\"driver_stats@v2:trips_today\"`), resolved against the registry at\n `feast apply` time — no importing/reconstructing historical view objects.\n- Fix offline ODFV resolution with a shared version-aware helper.\n\nGated by the existing `registry.enable_online_feature_view_versioning` flag,\nwhich (despite its name) gates both online and offline versioned resolution.\n","author":{"url":"https://github.com/HSarwat","@type":"Person","name":"HSarwat"},"datePublished":"2026-08-09T20:48:29Z","url":"https://github.com/feast-dev/feast/issues/6717"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1f549a4c-8029-582a-7d2e-fe722a1d711c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8DAE:10CB0:F1F68A:13E36EF:6AFE981D |
| html-safe-nonce | cb3037949fb9f139b837acaa9bd7d8b5bb7b947eccc832e74cd2144729152413 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4REFFOjEwQ0IwOkYxRjY4QToxM0UzNkVGOjZBRkU5ODFEIiwidmlzaXRvcl9pZCI6IjMyMjc5MzcyMDYzMDM2MjcyOTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 52c10f23bac06a9311cce2bd5a96d9a83672fe235fc506269bf4de9927b35639 |
| hovercard-subject-tag | issue:5104658881 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/feast-dev/feast/6717/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1ce738760a3a710f6301cc45850e0abbca4c98c20ec5bf0e961702240f920074/feast-dev/feast/issues/6717 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1ce738760a3a710f6301cc45850e0abbca4c98c20ec5bf0e961702240f920074/feast-dev/feast/issues/6717 |
| og:image:alt | Problem A FeatureService exists to freeze the exact feature definitions a model was trained and served on. Today it cannot pin a specific feature view version — it always resolves to the active (pr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | HSarwat |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/feast-dev/feast git https://github.com/feast-dev/feast.git |
| octolytics-dimension-user_id | 57027613 |
| octolytics-dimension-user_login | feast-dev |
| octolytics-dimension-repository_id | 161133770 |
| octolytics-dimension-repository_nwo | feast-dev/feast |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 161133770 |
| octolytics-dimension-repository_network_root_nwo | feast-dev/feast |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width