How to backfill offline store with UDF-transformed data for StreamFeatureView?
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- kafka, python
- Lĩnh vực
- data-engineering, databases
Hướng nghiên cứu
Bắt đầu bằng cách theo dõi StreamProcessor.ingest và materialize(), sau đó so sánh hành vi của chúng với get_historical_features() và write_to_offline_store(). Xem xét cách batch_source parquet và kho offline cục bộ được đọc và ghi. Công việc được xem là hoàn tất khi dự án có một workflow được lập tài liệu hoặc được hỗ trợ để backfill dữ liệu đã biến đổi bằng UDF mà không lặp lại việc biến đổi, tạo dữ liệu trùng lặp hoặc làm mất tính idempotent.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 7.4k
- Fork
- 1.5k
- Merge trung bình
- 2 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 107
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của feast-dev/feast
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
BigQuery data quality monitoring fails: PRIMARY KEY placed outside the column list in monitoring table DDLCó thể đã có người làm @liron-velocity đã nhận 50 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
get_online_features silently drops a join key value when it shares a name with an OnDemandFeatureView's RequestSource fieldCó thể đã có người làm @OHMFOHS đã nhận 99 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
kind/bug priority/p2
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
feast-dev/feast#6778 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của feast-dev/feast
Issue tương tự
-
Public benchmark import end-to-end test fails when the test stack's worker runs the parity jobĐang mởaccepted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
future-agi/future-agi#6392 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
memmapped_arange ignores the start value and drops the last point above the memmap thresholdCó thể đã có người làm @prathameshfuke đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
StingraySoftware/HENDRICS#213 ·
-
Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 2 ngày
-
bot-triaged module: decompositions module: edge cases module: int overflow module: primTorch oncall: pt2 triage review
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày