Make the Lance storage engine an optional feature (DataFusion-only build)

オープン
#171 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust
領域
backend, databases

調査の方向性

The work spans feature declarations and conditional code across 9 files; the issue does not name those files. Start by reading how delta and unity-catalog features gate dependencies and code, then inspect the Lance paths listed in the proposal. Done means the DataFusion-only build excludes Lance dependencies while default builds retain existing behavior; the issue reports test and clippy results for both configurations.

索引モデルが issue の本文から書いたものです。

説明

Would you accept a PR that makes the Lance storage engine an optional feature?

We use lance-graph's Cypher parser and DataFusion planner over our own tables, registered in a SessionContext and run with execute_with_context. That path doesn't touch Lance. Even so, lance, lance-linalg and lance-namespace are required dependencies. They bring a large dependency tree (OpenSSL, ring, a protoc build step) that we can't ship in our environment.

Proposal. Add a default-on lance feature to lance-graph and lance-graph-catalog, in the same way delta and unity-catalog are gated today. It would gate:

  • the lance, lance-linalg and lance-namespace dependencies;
  • DirNamespace and the execute_with_namespace* paths;
  • Lance vector search (VectorSearch, execute_with_vector_rerank).

Nothing changes for existing users. With default-features = false, the Cypher engine builds as a DataFusion-only library.

There is also one small fix that applies either way. sql_query.rs uses DataFusion's sql feature, but it is enabled only transitively through lance, so it should be declared directly.

Status. I have this ready on top of main (e260cf6). It is about 40 lines across 9 files:

  • cargo test -p lance-graph --no-default-features: 550 passed, with no lance*, openssl-sys or ring in cargo tree -e normal;
  • the default features: 598 passed;
  • clippy is clean both ways.

If this direction works for you, I'll open the PR. If you'd rather keep Lance required (for example, because of where the CSR / native traversal work is heading), that's useful to know too.

Drafted with an AI coding assistant; reviewed and tested by the author.

主要言語
Rust
スター
189
フォーク
40
平均マージ
16分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

lance-format/lance-graph のほかの issue

lance-format/lance-graph の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。