Skip to content

Conversation

@ChunxuTang
Copy link
Collaborator

This PR implements the to_sql API, which converts a Cypher query into a plain SQL query, through DataFusion's SQL unparser. The API is also exposed through the Python bindings.

Note that the API is an experimental feature, and there's a limitation for the API that all table names in the generated SQL are lowercased (e.g., Person becomes person, Company becomes company). This is because of the internal handling of DataFusion's SQL unparser. While this only affects the SQL string representation, actual query execution with execute() handles case-sensitive labels correctly.

@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@codecov-commenter
Copy link

codecov-commenter commented Dec 9, 2025

Codecov Report

❌ Patch coverage is 85.71429% with 6 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
rust/lance-graph/src/query.rs 85.71% 6 Missing ⚠️

📢 Thoughts on this report? Let us know!

@ChunxuTang ChunxuTang requested a review from beinan December 9, 2025 02:32
@beinan beinan merged commit 38d438d into lance-format:main Dec 9, 2025
9 checks passed
@ChunxuTang ChunxuTang deleted the to_sql branch December 27, 2025 00:05
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.

3 participants