Skip to content

experimental: add a converter for logical plan to sql#18

Merged
beinan merged 7 commits into
lance-format:mainfrom
ChunxuTang:sql
Oct 26, 2025
Merged

experimental: add a converter for logical plan to sql#18
beinan merged 7 commits into
lance-format:mainfrom
ChunxuTang:sql

Conversation

@ChunxuTang

Copy link
Copy Markdown
Collaborator

After we have the logical plan built, besides creating a native physical execution plan for data fusion and lanceDB, there's another option to convert the logical plan to SQL. It would allow us to implement some SQL optimizations, as well as leverage lanceDB vector search features.

Currently, the SQL converter supports:

  • ScanByLabel - Node scanning with properties
  • Filter - WHERE clause conditions
  • Project - SELECT projections
  • Distinct - DISTINCT modifier
  • Limit - LIMIT clause
  • Offset - SKIP/OFFSET clause

Doesn't support:

  • Expand - Relationship traversal
  • VariableLengthExpand - Variable-length paths
  • Join - Complex joins
  • Sort - ORDER BY clauses

@ChunxuTang ChunxuTang changed the title (experimental): add a converter for logical plan to sql experimental: add a converter for logical plan to sql Oct 26, 2025
@beinan beinan merged commit 5fa7c8f into lance-format:main Oct 26, 2025
9 checks passed
@ChunxuTang ChunxuTang deleted the sql branch November 3, 2025 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants