How to backfill offline store with UDF-transformed data for StreamFeatureView?
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Tranquilo
- Stack tecnológico
- kafka, python
- Área
- data-engineering, databases
Línea de trabajo
Empieza rastreando StreamProcessor.ingest y materialize(), y después compara su comportamiento con get_historical_features() y write_to_offline_store(). Revisa cómo se leen y escriben batch_source parquet y el almacén offline local. Se considera terminado cuando el proyecto cuenta con un flujo de trabajo documentado o compatible para rellenar datos transformados mediante UDF sin repetir la transformación, duplicar datos ni perder la idempotencia.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Background
I'm using StreamFeatureView with KafkaSource + local provider. The real-time ingestion path works well — StreamProcessor.ingest_stream_feature_view(to=ONLINE_AND_OFFLINE) consumes from Kafka, applies the pandas UDF, and writes transformed features to both online and offline stores.
Now I need to backfill historical data that predates the streaming pipeline. I have raw Kafka history available via ETL export, but I'm not sure what the recommended approach is to get UDF-transformed features into the offline store.
My setup
@stream_feature_view(
source=kafka_source, # KafkaSource with batch_source=FileSource(parquet)
mode="pandas",
udf=my_udf, # computes derived features (e.g. aggregations, flags) from raw fields
)
def my_features(df): ...
What I've tried
1. ETL export + materialize()
Export raw Kafka history to batch_source parquet, then call store.materialize(start, end).
This reads the batch_source, applies the UDF, and writes to the online store — but the offline store is not updated. After materialize(), calling get_historical_features() still returns raw data without the UDF-computed derived features.
2. Re-ingest via StreamProcessor from Kafka
Use StreamProcessor.ingest(to=ONLINE_AND_OFFLINE) with offset reset to consume historical messages.
This only works within Kafka's retention window and doesn't scale for large history.
Questions
-
Is there a recommended way to backfill the offline store with UDF-transformed data? I want the UDF defined on the StreamFeatureView to be the single source of truth, avoiding duplication in ETL scripts.
-
Does
materialize()intentionally skip the offline store? If so, what is the expected workflow for keeping the offline store in sync with UDF-transformed features after a historical backfill? -
Batch_source and offline store are the same file — For local/file-based offline stores,
materialize()reads from thebatch_sourceparquet, which is the same file thatwrite_to_offline_store()writes to. Even ifmaterialize()were extended to write back to the offline store, this would create problems:- UDF applied twice on subsequent runs (transformed rows re-read and re-transformed)
- Data duplication (raw + transformed rows coexist)
- Idempotency broken (each run appends more duplicates)
Is separating the batch_source (raw input) from the offline store (transformed output) something that has been considered? Or is there an existing pattern I'm missing?
Any guidance or pointers would be greatly appreciated! I may well be missing something in the existing workflow.
- Lenguaje dominante
- Python
- Estrellas
- 7.4k
- Forks
- 1.5k
- Merge medio
- 2 d 6 h
- PR fusionados (30 d)
- 107
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de feast-dev/feast
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
BigQuery data quality monitoring fails: PRIMARY KEY placed outside the column list in monitoring table DDLPosiblemente ocupada @liron-velocity la tomó hace 50 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
get_online_features silently drops a join key value when it shares a name with an OnDemandFeatureView's RequestSource fieldPosiblemente ocupada @OHMFOHS la tomó hace 99 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
kind/bug priority/p2
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
feast-dev/feast#6778 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de feast-dev/feast
Issues similares
-
Public benchmark import end-to-end test fails when the test stack's worker runs the parity jobAbiertoaccepted
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
future-agi/future-agi#6392 ·
Los mantenedores suelen responder en 1 día
-
memmapped_arange ignores the start value and drops the last point above the memmap thresholdPosiblemente ocupada @prathameshfuke la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
StingraySoftware/HENDRICS#213 ·
-
Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
bot-triaged module: decompositions module: edge cases module: int overflow module: primTorch oncall: pt2 triage review
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día