Repository navigation
Support df expr deletions - #54
Merged
Merged
Conversation
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]>
Signed-off-by: Yuval Lifshitz <[email protected]>
28 of 48 tasks
There was a problem hiding this comment.
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 refreshedCargo.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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
this PR also include latest lancedb version (0.30) that was needed for the new datafusion deletion API.