Repository navigation
refactor!: merge lance-arrow-scalar and lance-arrow-stats into lance-arrow - #11294
Merged
Merged
Conversation
…arrow Consolidate `lance-arrow-scalar` and `lance-arrow-stats` into `rust/lance-arrow` (under `lance_arrow::scalar::ArrowScalar` and `lance_arrow::stats`) and drop the unused custom binary scalar codec (`serde.rs`). Both crates tracked Arrow's major version (`59.0.0`) separately from the workspace version and were excluded from `cargo-publish.yml`, blocking `v15.0.0` publishing and allowing source drift against crates.io `58.0.0`. Merging them into `lance-arrow` keeps all scalar/stats helpers free of DataFusion dependencies while unifying workspace versioning and publishing.
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
Contributor
There was a problem hiding this comment.
✅ Gate recommendation: approve.
The consolidation removes the missing helper-crate releases from workspace publishing while preserving scalar ordering, statistics behavior, and the DataFusion-free dependency boundary. No merge-blocking issues found.
westonpace
approved these changes
Nov 23, 2026
westonpace
left a comment
Member
There was a problem hiding this comment.
No concerns. My assumption was smaller crates meant faster builds but if this is blocking us at all I'm happy to consolidate.
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.
cc @westonpace — opening this PR to consolidate
lance-arrow-scalarandlance-arrow-statsintolance-arrowahead of thev15.0.0release. Happy to hear your thoughts if you still want to keep them as standalone Arrow-versioned crates!Context
While preparing the
v15.0.0stable release, we hit a hard Rust publish blocker:v15.0.0crates.io publish:#10397bumpedlance-arrow-scalarandlance-arrow-statsto59.0.0(pinned via=59.0.0in the rootCargo.toml), while crates.io still only has58.0.0..github/workflows/cargo-publish.ymlexcludes both crates (--exclude lance-arrow-stats --exclude lance-arrow-scalar), and there is no other publish workflow, socargo publish --workspacefails immediately when resolvinglance-index.workspace.package.versionand were excluded after#6972, changes in#6808(ArrowScalar::is_nan) and#7966(Decimal128/Decimal256min/max stats) landed without bumping58.0.0. Rust users installinglance 8.x–14.0.3from crates.io received the stale May58.0.0tarball instead of the workspace source, and#10102added further Lance-specific ZoneMap seed NaN tracking on top.lance-arrow-stats,lance-index,lance) and a single crate owner (missinggithub:lancedb:release).lance-arrow: The original motivation in#5955/#5967was to avoid pulling DataFusion into lower-level crates.lance-arrowhas zero DataFusion dependencies, is already depended on bylance-encoding,lance-file,lance-core, andlance-index, and followsworkspace.package.versioncleanly.Since
v15.0.0is already a breaking major (Arrow 59 / DataFusion 55) and crates.io SemVer prevents downgrading59.0.0back to15.0.0under the old crate names, merging them intolance-arrowremoves the dual-track versioning and publish exclusions cleanly.Changes
ArrowScalar(and itsFromconversions) intolance_arrow::scalar::ArrowScalar(rust/lance-arrow/src/scalar/).rust/arrow-scalar/src/serde.rs, 558 lines with zero callers outside its own unit tests).StatisticsAccumulator,Statistics,NanCounts,count_nans, andcount_nans_signedintolance_arrow::stats(rust/lance-arrow/src/stats.rsandrust/lance-arrow/src/stats/nan.rs), along with its proptest regression seeds (rust/lance-arrow/proptest-regressions/stats.txt).arrow-castandarrow-rowtorust/lance-arrow/Cargo.toml(both are already workspace Arrow dependencies;lance-arrowremains free of DataFusion).lance-indexzonemap/bloomfilter andrust/lance/tests/arrow_ordering.rs) and removerust/arrow-scalarandrust/arrow-statsfrom the workspace and all three lockfiles (Cargo.lock,python/Cargo.lock,java/lance-jni/Cargo.lock).--exclude lance-arrow-stats --exclude lance-arrow-scalarfrom.github/workflows/cargo-publish.yml, and update thearrow-ordering-compatpath trigger in.github/workflows/rust.ymlandrust/AGENTS.md.Notes on
arrow-ordering-compatNo ordering expectations in
rust/lance/tests/arrow_ordering.rschanged—only the twouseimports were updated fromlance_arrow_scalar/lance_arrow_statstolance_arrow::scalar/lance_arrow::stats. Because the base branch's copy ofarrow_ordering.rsstill references the removed crates, the base-branch compile check inarrow-ordering-compatwill need thearrow-ordering-reviewedlabel once reviewed.Verification
cargo fmt --all -- --checkcargo test --profile ci --locked -p lance-arrow(366 passed, including 34scalar::arrow_scalar, 4scalar::convert, 64stats::, and 9 doctests)cargo test --profile ci --locked -p lance-index --lib 'scalar::zonemap::tests'(85 passed) and'scalar::bloomfilter::tests'(36 passed)cargo test --profile ci --locked -p lance --test arrow_ordering(46 passed)RUSTDOCFLAGS="-D warnings" cargo doc --profile ci --locked --no-deps -p lance-arrowcargo clippy --profile ci --locked --all --tests --benches -- -D warningscargo clippy --profile ci --locked -p lance --test arrow_ordering -- -D warningscargo package --workspace --no-verify --all-featuresandcargo publish --workspace --all-features --dry-run --no-verify(all 28 workspace crates resolve and pass dry-run)cargo metadata --frozenverified acrossCargo.toml,python/Cargo.toml, andjava/lance-jni/Cargo.toml