Proposal: Version-qualified feature refs in get_historical_features (offline store versioning)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Tranquilla
- Stack tecnologico
- python
- Ambito
- data-engineering, machine-learning
Direzione di ricerca
Inizia da get_historical_features, _parse_feature_ref e dal percorso di corrispondenza dei prefissi di ibis descritto nell'issue, quindi confrontali con il comportamento esistente del versioning online. Risolvi le questioni di progettazione facendo riferimento a #2728 prima di modificare il codice; il lavoro è completo quando le letture offline qualificate per versione hanno un comportamento concordato e testato, invece di ignorare silenziosamente la versione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
Feature view versioning (#6101) added @v<N> syntax for version-qualified online reads and feast materialize --version v<N> for writing to version-specific online tables. The offline retrieval path (get_historical_features) has no equivalent: version qualifiers in feature refs are silently stripped during ibis prefix matching but never used to route to a different source table.
This means a team that pins their online serving to driver_stats@v2 cannot generate training data from the same v2 schema — breaking training-serving consistency, which is one of the primary motivations for versioning.
The gap
Online store (works today):
store.get_online_features(features=["driver_stats@v2:trips_today"], ...)
# → routes to version-specific table: {project}_driver_stats_v2
Offline store (silently ignores version today):
store.get_historical_features(entity_df=..., features=["driver_stats@v2:trips_today"])
# → routes to the same source table regardless of @v2
# → version tag stripped in _parse_feature_ref / ibis prefix matching
Design questions
I'd like to get your input on the right approach before writing any code, since there are a few viable directions with different tradeoffs:
Option A — Version-specific source tables (mirrors online store pattern)
When enable_online_feature_view_versioning is enabled and a versioned ref is used, route to a version-suffixed offline source table (e.g. {project}_driver_stats_v2). Requires that versioned offline tables exist — either pre-created by an upstream pipeline or written by a future feast materialize-offline --version v2.
Pros: mirrors online store semantics exactly, strong training-serving consistency guarantee.
Cons: offline source data is usually externally managed; teams would need to maintain versioned source tables alongside their online tables, which may be impractical.
Option B — Schema-level version resolution (read from current table, project v schema)
Keep reading from the same source table, but apply the schema of the pinned version when selecting columns. Useful when the underlying data hasn't changed but the feature view's field definitions have evolved.
Pros: no need to maintain separate offline tables, works with externally managed sources.
Cons: weaker guarantee — if the source data itself changed between versions, this doesn't help.
Option C — Raise VersionedOfflineReadNotSupported (explicit error instead of silent ignore)
At minimum, detect @v<N> refs in get_historical_features and raise a clear error rather than silently stripping the version tag. This prevents silent training-serving skew today while the longer-term design is decided.
Questions for you
- Is offline store versioning on the roadmap for #2728, or is it intentionally out of scope?
- If in scope, does Option A or B better match the intended semantics?
- Would Option C (explicit error) be a useful interim step regardless?
Happy to take this forward once there's a design direction. I've been working through the Snowflake online store versioning (#6380) and the type_map offline fixes (#6388) so I have reasonable familiarity with both sides of the retrieval path.
- Lingua principale
- Python
- Stelle
- 7.4k
- Fork
- 1.5k
- Merge medio
- 2g 6h
- PR unite (30g)
- 107
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di feast-dev/feast
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
BigQuery data quality monitoring fails: PRIMARY KEY placed outside the column list in monitoring table DDLForse già presa @liron-velocity l’ha presa 50 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
get_online_features silently drops a join key value when it shares a name with an OnDemandFeatureView's RequestSource fieldForse già presa @OHMFOHS l’ha presa 99 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
kind/bug priority/p2
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
feast-dev/feast#6778 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di feast-dev/feast
Issue simili
-
Public benchmark import end-to-end test fails when the test stack's worker runs the parity jobApertaaccepted
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
future-agi/future-agi#6392 ·
I maintainer di solito rispondono entro 1 giorno
-
memmapped_arange ignores the start value and drops the last point above the memmap thresholdForse già presa @prathameshfuke l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
StingraySoftware/HENDRICS#213 ·
-
Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
bot-triaged module: decompositions module: edge cases module: int overflow module: primTorch oncall: pt2 triage review
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno