Skip to content

feat: Implement full Lance maintenance SQL surface and internal-only maintenance APIs#155

Merged
Xuanwo merged 7 commits intomainfrom
feat/maintenance-sql-surface
Mar 3, 2026
Merged

feat: Implement full Lance maintenance SQL surface and internal-only maintenance APIs#155
Xuanwo merged 7 commits intomainfrom
feat/maintenance-sql-surface

Conversation

@Xuanwo
Copy link
Copy Markdown
Collaborator

@Xuanwo Xuanwo commented Mar 3, 2026

This PR completes end-to-end maintenance support for Lance datasets in the DuckDB extension using stable SQL entry points, while keeping metadata/maintenance functions internal-only per repository policy. It adds parser/planner support for OPTIMIZE, VACUUM LANCE, ALTER INDEX ... OPTIMIZE, and auto-cleanup configuration/query SQL, all routed through a unified maintenance execution path.

It also extends the Rust/C FFI to support options + structured metrics for compaction, cleanup, and index optimization, so maintenance behavior is both tunable and observable from SQL. Alongside the implementation, this PR adds focused sqllogictest coverage for surface syntax, options/error semantics, concurrency scenarios, and auto-cleanup configuration flow.

Context:

  • Policy alignment: keep maintenance/metadata functions internal-only and expose user-facing capabilities via standard SQL.
  • Validation run before opening PR:
    • uv run make format
    • GEN=ninja make test_debug (all test/sql passed, with env-gated skips)

@Xuanwo Xuanwo changed the title Implement full Lance maintenance SQL surface and internal-only maintenance APIs feat: Implement full Lance maintenance SQL surface and internal-only maintenance APIs Mar 3, 2026
@Xuanwo Xuanwo merged commit 9409651 into main Mar 3, 2026
15 of 16 checks passed
@Xuanwo Xuanwo deleted the feat/maintenance-sql-surface branch March 3, 2026 13:20
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.

1 participant