Granular OpenLineage event emission on `feast apply` for precise FeatureView lineage
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 76/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- python
- Ambito
- data-engineering
Direzione di ricerca
Start in sdk/python/feast/openlineage/emitter.py at emit_apply(), then compare feature_view_to_job() and emit_feature_view_lineage() in mappers.py and the edge handling in processor.py. Done means each FeatureView, StreamFeatureView, and OnDemandFeatureView emits its own event with only its declared inputs and its dataset output, while preserving the existing per-service behavior.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is your feature request related to a problem? Please describe.
When openlineage.emit_on_apply: true is enabled in feature_store.yaml, running feast apply currently aggregates all defined data sources, entities, and feature views into a single bulk definition job event (feast.<project>.feature_views).
Because OpenLineage lineage engines (including Feast's lineage consumer) infer dataset-to-dataset relationships from job inputs and outputs, placing all data sources as inputs and all feature views as outputs of the same job causes the lineage graph to form a full $(M \times N)$ Cartesian product. Every data source appears connected to every feature view (as dashed derived edges), regardless of whether they are actually related in the feature store definitions.
In feature stores with multiple data sources and feature views, this makes the OpenLineage lineage graph cluttered and inaccurate for downstream consumers and the UI.
Describe the solution you'd like
FeastOpenLineageEmitter.emit_apply() could emit more granular, per-FeatureView definition events instead of a single monolithic job event.
Specifically:
- For each
FeatureView/StreamFeatureView/OnDemandFeatureView, emit a distinct definition event where:inputs: Only the data sources and entities declared for that specific feature view.outputs: That specific feature view dataset.
- Maintain the existing pattern used for
FeatureServicedefinitions (which are already emitted individually per service).
This ensures that OpenLineage accurately captures the true 1:1 or N:1 dependency graph between sources and feature views both in Feast UI and in external lineage backends (e.g., Marquez, DataHub, Atlan).
Describe alternatives you've considered
- Relying on the UI's Feast Registry Lineage toggle:
- While the built-in "Feast registry lineage" view correctly parses definitions directly from the registry proto, it does not help external OpenLineage consumers/catalogs that rely on standard OpenLineage event streams emitted during CI/CD or
feast apply.
- While the built-in "Feast registry lineage" view correctly parses definitions directly from the registry proto, it does not help external OpenLineage consumers/catalogs that rely on standard OpenLineage event streams emitted during CI/CD or
- Filtering or matching datasets in the backend processor:
- Having
OpenLineageProcessorinspect facets to filter out unrelated edges is fragile. Emitting accurate event boundaries at the source (FeastOpenLineageEmitter) adheres more closely to OpenLineage design principles.
- Having
Additional context
Technical Details
-
Bulk emission in emitter:
Insdk/python/feast/openlineage/emitter.pywithinemit_apply(), all sources and entities are collected intofv_inputs, and all feature views are collected intofv_outputs:# sdk/python/feast/openlineage/emitter.py result1 = self._client.emit_run_event( job_name=feature_views_job_name(project), run_id=str(uuid.uuid4()), event_type=RunState.COMPLETE, inputs=fv_inputs, outputs=fv_outputs, job_facets=job_facets, namespace=namespace, ) -
Transitive edge derivation:
Insdk/python/feast/openlineage/processor.py,_build_dataset_to_dataset_edges()maps all job inputs to all job outputs:# sdk/python/feast/openlineage/processor.py for inp in inputs: for out in outputs: self._store.upsert_lineage_edge( source_type="dataset", source_name=inp["name"], target_type="dataset", target_name=out["name"], edge_type="derived", ) -
Existing helper:
feature_view_to_job()andemit_feature_view_lineage()insdk/python/feast/openlineage/mappers.pyalready implement per-view mapping logic, which can be reused or aligned withemit_apply().
- 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 51 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