Skip to content

Support df expr deletions - #54

Merged
yuvalif merged 2 commits into
lancedb:mainfrom
yuvalif:support-df-expr-deletions
Jun 8, 2026
Merged

yuvalif merged 2 commits into
lancedb:mainfrom
yuvalif:support-df-expr-deletions

Conversation

@yuvalif

@yuvalif yuvalif commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

this PR also include latest lancedb version (0.30) that was needed for the new datafusion deletion API.

yuvalif and others added 2 commits June 2, 2026 16:09
  Dependency versions:
  - lancedb 0.22.3 -> 0.30.0
  - lance 0.39.0 -> 7.0.0

  Breaking changes addressed:
  - error.rs: added External error variant mapping, added Namespace error
    to distinguish lance::Error::Namespace from other lance errors
  - connection.rs: namespace request types moved from lancedb::database to
    lance_namespace::models with new struct fields (id instead of namespace)
  - connection.rs: ListNamespacesResponse changed from iterable to struct
    with namespaces field
  - table.rs: DatasetConsistencyWrapper::get_mut() removed, metadata
    set/delete now uses clone-mutate-update pattern
  - test_connection.cpp: namespace operations now succeed on local databases
    (manifest mode enabled by default in 0.30.0)

Signed-off-by: Yuval Lifshitz <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the lancedb-c C/Rust FFI bindings to work with LanceDB 0.30.0, including adopting the newer namespace API types and exposing a new table-deletion entrypoint that accepts a DataFusion expression (built via the existing lancedb_expr_* APIs).

Changes:

  • Added lancedb_table_df_delete (C API + Rust implementation) and new C++ tests covering expression-based deletes.
  • Updated namespace APIs to use lance_namespace::models::* request/response types and adjusted tests to expect support.
  • Bumped crate/dependency versions to LanceDB 0.30.0 (and refreshed Cargo.lock), and adjusted dataset metadata mutation logic for the new dataset mutability model.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/test_table.cpp Adds DF-expression-based deletion test coverage for lancedb_table_df_delete.
tests/test_connection.cpp Updates namespace tests to expect SUCCESS now that namespaces are supported.
src/table.rs Implements lancedb_table_df_delete; updates metadata mutation to use ensure_mutable + clone/update pattern.
src/error.rs Adds a Namespace error code and maps Lance namespace errors to it.
src/connection.rs Switches namespace APIs to lance_namespace::models request/response structs.
include/lancedb.h Exposes lancedb_table_df_delete and adds LANCEDB_NAMESPACE to the public error enum/messages.
Cargo.toml Updates crate version and bumps core dependencies to LanceDB 0.30.0.
Cargo.lock Large lockfile refresh due to dependency upgrades.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread include/lancedb.h Resolved
@yuvalif
yuvalif merged commit dddc8fb into lancedb:main Jun 8, 2026
6 checks passed
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