chore: update lance dependency to v15.1.0-beta.2 (#5217)

Bump the Rust workspace and Java Lance dependencies to [Lance
v15.1.0-beta.2](https://github.com/lance-format/lance/releases/tag/v15.1.0-beta.2)
and pin the matching `pylance` beta in the Python test extra.

Raise the Rust toolchain and minimum supported version to 1.98.0 as
required by Lance, and address the new Clippy diagnostics.

Co-authored-by: Xuanwo <github@xuanwo.io>
This commit is contained in:
LanceDB Robot
2026-11-26 05:39:46 +08:00
committed by GitHub
co-authored by Xuanwo
parent 8441dab874
commit 17532bb8c3
12 changed files with 89 additions and 83 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ const REQUEST_ID_HEADER: HeaderName = HeaderName::from_static("x-request-id");
const DEFAULT_BLOB_REQUEST_CONCURRENCY: usize = 8;
/// M1 prototype routing threshold for direct Blob reads. It stays internal
/// until the acceptance benchmark establishes the right default.
pub(crate) const DEFAULT_BLOB_PRESIGN_THRESHOLD_BYTES: u64 = 10 * 1024 * 1024;
const DEFAULT_BLOB_PRESIGN_THRESHOLD_BYTES: u64 = 10 * 1024 * 1024;
pub fn redact_sensitive_headers(headers: &mut HeaderMap) {
const SENSITIVE_HEADERS: [&str; 5] = [
+3 -1
View File
@@ -2857,7 +2857,9 @@ mod tests {
let mut bytes = vec![0; 128 * 72 * 1024];
SmallRng::seed_from_u64(4977).fill_bytes(&mut bytes);
let strings: Vec<String> = bytes
.chunks_exact(72 * 1024)
.as_chunks::<{ 72 * 1024 }>()
.0
.iter()
.map(|chunk| chunk.iter().map(|b| char::from(b'!' + b % 90)).collect())
.collect();
let mut batches = Vec::new();
+4 -2
View File
@@ -1282,7 +1282,8 @@ mod tests {
use rand::{RngCore, SeedableRng, rngs::SmallRng};
let mut bytes = vec![0; 128 * 1024];
SmallRng::seed_from_u64(7).fill_bytes(&mut bytes);
let values = arrow_array::LargeBinaryArray::from_iter_values(bytes.chunks_exact(1024));
let values =
arrow_array::LargeBinaryArray::from_iter_values(bytes.as_chunks::<1024>().0.iter());
let schema = Arc::new(ArrowSchema::new(vec![Field::new(
"payload",
DataType::LargeBinary,
@@ -1735,7 +1736,8 @@ mod tests {
let mut batches = Vec::new();
for shift in [0, 1] {
let values = BinaryArray::from_iter(
std::iter::once(None).chain(bytes.chunks_exact(1024).skip(shift).map(Some)),
std::iter::once(None)
.chain(bytes.as_chunks::<1024>().0.iter().skip(shift).map(Some)),
);
let keys = UInt8Array::from(vec![
Some(120),
+3 -1
View File
@@ -687,7 +687,9 @@ fn decode_legacy_sidecar(bytes: &[u8]) -> Result<FreshnessState> {
return Err(malformed());
}
let signatures = body
.chunks_exact(12)
.as_chunks::<12>()
.0
.iter()
.map(|entry| {
let fragment_id = u32::from_le_bytes(entry[..4].try_into().unwrap());
let hash = u64::from_le_bytes(entry[4..].try_into().unwrap());