feat: Lance as an engine-agnostic, catalog-backed, version-pinned data source
Maintainer thường phản hồi trong vòng 1 ngày
@haoxu0 đang làm issue này rồi.
Từ ngày 30/9/2026.
Đá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
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python
- Lĩnh vực
- data-engineering
Hướng nghiên cứu
Start by reading the DataSource abstraction discussion in #6499, the engine-selection work in #5330 and prerequisite #6359, and the vector-field equality code in Field.eq. The issue proposes a multi-stage feature spanning native and Spark reads, catalog addressing, version pinning, schema validation, and per-FeatureView engine selection. Before implementation, settle scope and sequencing; done would require those design decisions and an agreed, testable first step.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Feast has no Lance support today — no issue or PR references it. This proposes LanceSource, but the more useful framing is that Lance is a second implementation of the abstraction already agreed in #6499, and it is the motivating use case that makes #5782, #5652 and #5330 concrete rather than theoretical.
Filing it as one issue because those three are only separable on paper: an embedding source is useless without a version pin, a declared vector schema, and a choice of execution engine.
Why this is not #1494 / #1533
Format-specific sources have a poor record here — #1494 (Hudi) was closed wontfix, #1533 (Delta) has been open since 2021. So this is deliberately not "add another format".
In #6499, @ntkathole proposed moving catalog connection config onto the DataSource so the offline store stays generic and other engines (Trino, DuckDB) can serve the same tables; @falloficaruss agreed. That abstraction is currently specified against exactly one format and one catalog API. Lance stresses it in two ways Iceberg does not:
- A non-Iceberg format inside a REST catalog. Apache Polaris serves Lance through its generic-tables API, on a different path from its Iceberg API. If the source only models Iceberg tables, catalog-backed formats need a parallel code path — cheaper to settle before
IcebergRestCatalogSourcelands than after. - A non-JVM read path. Lance has a native Python/Rust reader, so this source can be served with no Spark at all. That is a real test of whether the
DataSourceis engine-agnostic, rather than Spark-agnostic in name only.
Proposal
LanceSource
LanceSource(
catalog="my_catalog", # catalog-backed
namespace="my_namespace",
table="item_embeddings",
# or path-based:
# uri="s3://bucket/item_embeddings.lance",
version=3, # or tag="candidate" — #5782
timestamp_field="generated_at",
)
A naming question worth settling early: if #6499 lands as IcebergRestCatalogSource, then a sibling called LanceSource mixes two axes — one named for a catalog, one for a format. Either the catalog connection is a shared, reusable piece that both formats reference, or the names should agree on an axis. I don't have a strong preference, but it is easier to decide now than to rename later.
Vector schema is declared on the FeatureView, using fields Field already has:
Field(name="embedding", dtype=Array(Float32),
vector_index=True, vector_length=160, vector_search_metric="COSINE")
Two engines, one source — #5330
| Path | Engine | Use |
|---|---|---|
| Native | pylance + DataFusion/DuckDB |
local dev, CI, notebooks, eval-set construction |
| Spark | lance-spark |
existing batch/GPU clusters |
The read-path half is already solved: HybridOfflineStore (#5541, shipped in 0.51.0) routes by data source type, so both stores can coexist in one project.
The remaining gap is #5330 — batch_engine / batch_configs on FeatureView are still placeholders, so a project cannot choose the engine per FeatureView. An embedding pipeline needs exactly that: Spark for generation, native for interactive retrieval, one project. #6359 looks like the structural prerequisite, since the offline-store retrieval path currently bypasses the compute engine.
Precedent for one source across engines: FileSource is served by both the Dask and DuckDB offline stores.
Pin semantics — answering @jfw-ppi on #5782
@jfw-ppi asked whether the response schema would stay FeatureView-defined rather than varying by store or snapshot. Proposed:
- The
FeatureViewschema is the contract. A pinned version selects data, never shape. - At resolve time, validate the pinned version's actual schema against the declared schema.
- Incompatibility fails explicitly. A vector-length change is a hard error, not a silently different response.
Related, and an argument for validating rather than trusting declarations: in Field.__eq__ the vector_index and vector_search_metric comparisons are currently commented out, so only vector_length participates in equality:
or self.vector_length != other.vector_length
# or self.vector_index != other.vector_index
# or self.vector_search_metric != other.vector_search_metric
A metric change from COSINE to L2 is therefore invisible to feast apply / plan. Happy to split that out into its own bug if preferred.
Vector config placement — #5652
This assumes #5652's direction: vector config belongs to the feature definition, not global online_store config. The Field attributes already exist, but online stores still read dimension and metric from global config, so two feature views with different dimensions cannot coexist in one project.
Scope
Not proposing Lance as an online store. Lance is a format plus indexes, not a low-latency KV service, and its write path is columnar while online_write_batch is row-oriented proto. Offline / retrieval axis only.
Suggested sequencing
LanceSource+ native (pylance) offline store, path-based only — landable without waiting on #6499- Catalog-backed addressing, coordinated with #6499
version/tagpinning + schema validation (#5782)- Spark offline store support for
LanceSource - Per-FeatureView engine selection (#5330, after #6359)
Related: #6499, #5782, #5652, #5330, #6359, #5541, #2406
- 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