Compare commits

..

6 Commits

Author SHA1 Message Date
Wyatt Alt
74a5ab9e9a update cargo.lock 2025-08-29 09:25:05 -07:00
Wyatt Alt
59102d723a Update lance again 2025-08-29 08:39:36 -07:00
Wyatt Alt
e32dee9f78 lint fix 2025-08-28 16:44:18 -07:00
Wyatt Alt
af226f087a fix test issue 2025-08-28 16:27:27 -07:00
Wyatt Alt
521c3af6f0 update lance 2025-08-28 16:27:06 -07:00
Wyatt Alt
140a4e2f53 chore: add storage_options to object_store wrap()
Adds storage_options to object_store wrap() to adhere to upstream lance
change.
2025-08-28 16:27:06 -07:00
20 changed files with 51 additions and 45 deletions

View File

@@ -1,5 +1,5 @@
[tool.bumpversion]
current_version = "0.22.0-beta.0"
current_version = "0.21.4-beta.1"
parse = """(?x)
(?P<major>0|[1-9]\\d*)\\.
(?P<minor>0|[1-9]\\d*)\\.

29
Cargo.lock generated
View File

@@ -2844,7 +2844,7 @@ checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c"
[[package]]
name = "fsst"
version = "0.34.0"
source = "git+https://github.com/lancedb/lance.git?tag=v0.34.0-beta.3#31bc1c9b5c27871e8087726bf136696f22243679"
source = "git+https://github.com/lancedb/lance.git?tag=v0.34.0-beta.2#0b82c816d1b3cf5a60a42b7cfa525c2df971aa7f"
dependencies = [
"arrow-array",
"rand 0.9.1",
@@ -3995,7 +3995,7 @@ dependencies = [
[[package]]
name = "lance"
version = "0.34.0"
source = "git+https://github.com/lancedb/lance.git?tag=v0.34.0-beta.3#31bc1c9b5c27871e8087726bf136696f22243679"
source = "git+https://github.com/lancedb/lance.git?tag=v0.34.0-beta.2#0b82c816d1b3cf5a60a42b7cfa525c2df971aa7f"
dependencies = [
"arrow",
"arrow-arith",
@@ -4059,7 +4059,7 @@ dependencies = [
[[package]]
name = "lance-arrow"
version = "0.34.0"
source = "git+https://github.com/lancedb/lance.git?tag=v0.34.0-beta.3#31bc1c9b5c27871e8087726bf136696f22243679"
source = "git+https://github.com/lancedb/lance.git?tag=v0.34.0-beta.2#0b82c816d1b3cf5a60a42b7cfa525c2df971aa7f"
dependencies = [
"arrow-array",
"arrow-buffer",
@@ -4078,7 +4078,7 @@ dependencies = [
[[package]]
name = "lance-bitpacking"
version = "0.34.0"
source = "git+https://github.com/lancedb/lance.git?tag=v0.34.0-beta.3#31bc1c9b5c27871e8087726bf136696f22243679"
source = "git+https://github.com/lancedb/lance.git?tag=v0.34.0-beta.2#0b82c816d1b3cf5a60a42b7cfa525c2df971aa7f"
dependencies = [
"arrayref",
"paste",
@@ -4088,7 +4088,7 @@ dependencies = [
[[package]]
name = "lance-core"
version = "0.34.0"
source = "git+https://github.com/lancedb/lance.git?tag=v0.34.0-beta.3#31bc1c9b5c27871e8087726bf136696f22243679"
source = "git+https://github.com/lancedb/lance.git?tag=v0.34.0-beta.2#0b82c816d1b3cf5a60a42b7cfa525c2df971aa7f"
dependencies = [
"arrow-array",
"arrow-buffer",
@@ -4124,7 +4124,7 @@ dependencies = [
[[package]]
name = "lance-datafusion"
version = "0.34.0"
source = "git+https://github.com/lancedb/lance.git?tag=v0.34.0-beta.3#31bc1c9b5c27871e8087726bf136696f22243679"
source = "git+https://github.com/lancedb/lance.git?tag=v0.34.0-beta.2#0b82c816d1b3cf5a60a42b7cfa525c2df971aa7f"
dependencies = [
"arrow",
"arrow-array",
@@ -4154,7 +4154,7 @@ dependencies = [
[[package]]
name = "lance-datagen"
version = "0.34.0"
source = "git+https://github.com/lancedb/lance.git?tag=v0.34.0-beta.3#31bc1c9b5c27871e8087726bf136696f22243679"
source = "git+https://github.com/lancedb/lance.git?tag=v0.34.0-beta.2#0b82c816d1b3cf5a60a42b7cfa525c2df971aa7f"
dependencies = [
"arrow",
"arrow-array",
@@ -4172,7 +4172,7 @@ dependencies = [
[[package]]
name = "lance-encoding"
version = "0.34.0"
source = "git+https://github.com/lancedb/lance.git?tag=v0.34.0-beta.3#31bc1c9b5c27871e8087726bf136696f22243679"
source = "git+https://github.com/lancedb/lance.git?tag=v0.34.0-beta.2#0b82c816d1b3cf5a60a42b7cfa525c2df971aa7f"
dependencies = [
"arrow-arith",
"arrow-array",
@@ -4209,7 +4209,7 @@ dependencies = [
[[package]]
name = "lance-file"
version = "0.34.0"
source = "git+https://github.com/lancedb/lance.git?tag=v0.34.0-beta.3#31bc1c9b5c27871e8087726bf136696f22243679"
source = "git+https://github.com/lancedb/lance.git?tag=v0.34.0-beta.2#0b82c816d1b3cf5a60a42b7cfa525c2df971aa7f"
dependencies = [
"arrow-arith",
"arrow-array",
@@ -4244,7 +4244,7 @@ dependencies = [
[[package]]
name = "lance-index"
version = "0.34.0"
source = "git+https://github.com/lancedb/lance.git?tag=v0.34.0-beta.3#31bc1c9b5c27871e8087726bf136696f22243679"
source = "git+https://github.com/lancedb/lance.git?tag=v0.34.0-beta.2#0b82c816d1b3cf5a60a42b7cfa525c2df971aa7f"
dependencies = [
"arrow",
"arrow-array",
@@ -4299,7 +4299,7 @@ dependencies = [
[[package]]
name = "lance-io"
version = "0.34.0"
source = "git+https://github.com/lancedb/lance.git?tag=v0.34.0-beta.3#31bc1c9b5c27871e8087726bf136696f22243679"
source = "git+https://github.com/lancedb/lance.git?tag=v0.34.0-beta.2#0b82c816d1b3cf5a60a42b7cfa525c2df971aa7f"
dependencies = [
"arrow",
"arrow-arith",
@@ -4340,7 +4340,7 @@ dependencies = [
[[package]]
name = "lance-linalg"
version = "0.34.0"
source = "git+https://github.com/lancedb/lance.git?tag=v0.34.0-beta.3#31bc1c9b5c27871e8087726bf136696f22243679"
source = "git+https://github.com/lancedb/lance.git?tag=v0.34.0-beta.2#0b82c816d1b3cf5a60a42b7cfa525c2df971aa7f"
dependencies = [
"arrow-array",
"arrow-buffer",
@@ -4364,7 +4364,7 @@ dependencies = [
[[package]]
name = "lance-table"
version = "0.34.0"
source = "git+https://github.com/lancedb/lance.git?tag=v0.34.0-beta.3#31bc1c9b5c27871e8087726bf136696f22243679"
source = "git+https://github.com/lancedb/lance.git?tag=v0.34.0-beta.2#0b82c816d1b3cf5a60a42b7cfa525c2df971aa7f"
dependencies = [
"arrow",
"arrow-array",
@@ -4403,7 +4403,7 @@ dependencies = [
[[package]]
name = "lance-testing"
version = "0.34.0"
source = "git+https://github.com/lancedb/lance.git?tag=v0.34.0-beta.3#31bc1c9b5c27871e8087726bf136696f22243679"
source = "git+https://github.com/lancedb/lance.git?tag=v0.34.0-beta.2#0b82c816d1b3cf5a60a42b7cfa525c2df971aa7f"
dependencies = [
"arrow-array",
"arrow-schema",
@@ -7013,6 +7013,7 @@ version = "1.0.140"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "20068b6e96dc6c9bd23e01df8827e6c7e1f2fddd43c21810382803c136b99373"
dependencies = [
"indexmap 2.9.0",
"itoa",
"memchr",
"ryu",

View File

@@ -15,14 +15,14 @@ categories = ["database-implementations"]
rust-version = "1.78.0"
[workspace.dependencies]
lance = { "version" = "=0.34.0", default-features = false, "features" = ["dynamodb"], "tag" = "v0.34.0-beta.3", "git" = "https://github.com/lancedb/lance.git" }
lance-io = { "version" = "=0.34.0", default-features = false, "tag" = "v0.34.0-beta.3", "git" = "https://github.com/lancedb/lance.git" }
lance-index = { "version" = "=0.34.0", "tag" = "v0.34.0-beta.3", "git" = "https://github.com/lancedb/lance.git" }
lance-linalg = { "version" = "=0.34.0", "tag" = "v0.34.0-beta.3", "git" = "https://github.com/lancedb/lance.git" }
lance-table = { "version" = "=0.34.0", "tag" = "v0.34.0-beta.3", "git" = "https://github.com/lancedb/lance.git" }
lance-testing = { "version" = "=0.34.0", "tag" = "v0.34.0-beta.3", "git" = "https://github.com/lancedb/lance.git" }
lance-datafusion = { "version" = "=0.34.0", "tag" = "v0.34.0-beta.3", "git" = "https://github.com/lancedb/lance.git" }
lance-encoding = { "version" = "=0.34.0", "tag" = "v0.34.0-beta.3", "git" = "https://github.com/lancedb/lance.git" }
lance = { "version" = "=0.34.0", default-features = false, "features" = ["dynamodb"], "tag" = "v0.34.0-beta.2", "git" = "https://github.com/lancedb/lance.git" }
lance-io = { "version" = "=0.34.0", default-features = false, "tag" = "v0.34.0-beta.2", "git" = "https://github.com/lancedb/lance.git" }
lance-index = { "version" = "=0.34.0", "tag" = "v0.34.0-beta.2", "git" = "https://github.com/lancedb/lance.git" }
lance-linalg = { "version" = "=0.34.0", "tag" = "v0.34.0-beta.2", "git" = "https://github.com/lancedb/lance.git" }
lance-table = { "version" = "=0.34.0", "tag" = "v0.34.0-beta.2", "git" = "https://github.com/lancedb/lance.git" }
lance-testing = { "version" = "=0.34.0", "tag" = "v0.34.0-beta.2", "git" = "https://github.com/lancedb/lance.git" }
lance-datafusion = { "version" = "=0.34.0", "tag" = "v0.34.0-beta.2", "git" = "https://github.com/lancedb/lance.git" }
lance-encoding = { "version" = "=0.34.0", "tag" = "v0.34.0-beta.2", "git" = "https://github.com/lancedb/lance.git" }
# Note that this one does not include pyarrow
arrow = { version = "55.1", optional = false }
arrow-array = "55.1"

View File

@@ -8,7 +8,7 @@
<parent>
<groupId>com.lancedb</groupId>
<artifactId>lancedb-parent</artifactId>
<version>0.22.0-beta.0</version>
<version>0.21.4-beta.1</version>
<relativePath>../pom.xml</relativePath>
</parent>

View File

@@ -8,7 +8,7 @@
<parent>
<groupId>com.lancedb</groupId>
<artifactId>lancedb-parent</artifactId>
<version>0.22.0-beta.0</version>
<version>0.21.4-beta.1</version>
<relativePath>../pom.xml</relativePath>
</parent>

View File

@@ -6,7 +6,7 @@
<groupId>com.lancedb</groupId>
<artifactId>lancedb-parent</artifactId>
<version>0.22.0-beta.0</version>
<version>0.21.4-beta.1</version>
<packaging>pom</packaging>
<name>${project.artifactId}</name>
<description>LanceDB Java SDK Parent POM</description>

View File

@@ -1,7 +1,7 @@
[package]
name = "lancedb-nodejs"
edition.workspace = true
version = "0.22.0-beta.0"
version = "0.21.4-beta.1"
license.workspace = true
description.workspace = true
repository.workspace = true

View File

@@ -1,6 +1,6 @@
{
"name": "@lancedb/lancedb-darwin-arm64",
"version": "0.22.0-beta.0",
"version": "0.21.4-beta.1",
"os": ["darwin"],
"cpu": ["arm64"],
"main": "lancedb.darwin-arm64.node",

View File

@@ -1,6 +1,6 @@
{
"name": "@lancedb/lancedb-darwin-x64",
"version": "0.22.0-beta.0",
"version": "0.21.4-beta.1",
"os": ["darwin"],
"cpu": ["x64"],
"main": "lancedb.darwin-x64.node",

View File

@@ -1,6 +1,6 @@
{
"name": "@lancedb/lancedb-linux-arm64-gnu",
"version": "0.22.0-beta.0",
"version": "0.21.4-beta.1",
"os": ["linux"],
"cpu": ["arm64"],
"main": "lancedb.linux-arm64-gnu.node",

View File

@@ -1,6 +1,6 @@
{
"name": "@lancedb/lancedb-linux-arm64-musl",
"version": "0.22.0-beta.0",
"version": "0.21.4-beta.1",
"os": ["linux"],
"cpu": ["arm64"],
"main": "lancedb.linux-arm64-musl.node",

View File

@@ -1,6 +1,6 @@
{
"name": "@lancedb/lancedb-linux-x64-gnu",
"version": "0.22.0-beta.0",
"version": "0.21.4-beta.1",
"os": ["linux"],
"cpu": ["x64"],
"main": "lancedb.linux-x64-gnu.node",

View File

@@ -1,6 +1,6 @@
{
"name": "@lancedb/lancedb-linux-x64-musl",
"version": "0.22.0-beta.0",
"version": "0.21.4-beta.1",
"os": ["linux"],
"cpu": ["x64"],
"main": "lancedb.linux-x64-musl.node",

View File

@@ -1,6 +1,6 @@
{
"name": "@lancedb/lancedb-win32-arm64-msvc",
"version": "0.22.0-beta.0",
"version": "0.21.4-beta.1",
"os": [
"win32"
],

View File

@@ -1,6 +1,6 @@
{
"name": "@lancedb/lancedb-win32-x64-msvc",
"version": "0.22.0-beta.0",
"version": "0.21.4-beta.1",
"os": ["win32"],
"cpu": ["x64"],
"main": "lancedb.win32-x64-msvc.node",

View File

@@ -11,7 +11,7 @@
"ann"
],
"private": false,
"version": "0.22.0-beta.0",
"version": "0.21.4-beta.1",
"main": "dist/index.js",
"exports": {
".": "./dist/index.js",

View File

@@ -1,5 +1,5 @@
[tool.bumpversion]
current_version = "0.25.0-beta.0"
current_version = "0.24.4-beta.1"
parse = """(?x)
(?P<major>0|[1-9]\\d*)\\.
(?P<minor>0|[1-9]\\d*)\\.

View File

@@ -1,6 +1,6 @@
[package]
name = "lancedb-python"
version = "0.25.0-beta.0"
version = "0.24.4-beta.1"
edition.workspace = true
description = "Python bindings for LanceDB"
license.workspace = true

View File

@@ -1,6 +1,6 @@
[package]
name = "lancedb"
version = "0.22.0-beta.0"
version = "0.21.4-beta.1"
edition.workspace = true
description = "LanceDB: A serverless, low-latency vector database for AI applications"
license.workspace = true

View File

@@ -2147,7 +2147,7 @@ mod tests {
let body = request.body().unwrap().as_bytes().unwrap();
let body: serde_json::Value = serde_json::from_slice(body).unwrap();
let mut expected_body = serde_json::json!({
let expected_body = serde_json::json!({
"prefilter": true,
"distance_type": "l2",
"nprobes": 20,
@@ -2156,12 +2156,11 @@ mod tests {
"lower_bound": Option::<f32>::None,
"upper_bound": Option::<f32>::None,
"k": 10,
"vector": vector_f32_to_f64(&[0.1, 0.2, 0.3]),
"ef": Option::<usize>::None,
"refine_factor": null,
"version": null,
});
// Pass vector separately to make sure it matches f32 precision.
expected_body["vector"] = vec![0.1f32, 0.2, 0.3].into();
assert_eq!(body, expected_body);
let response_body = write_ipc_file(&expected_data_ref);
@@ -2232,6 +2231,13 @@ mod tests {
assert_eq!(data[0].as_ref().unwrap(), &expected_data);
}
fn vector_f32_to_f64(vector: &[f32]) -> Vec<serde_json::Value> {
vector
.iter()
.map(|v| serde_json::Value::Number(serde_json::Number::from_f64(*v as f64).unwrap()))
.collect()
}
#[tokio::test]
async fn test_query_vector_all_params() {
let table = Table::new_with_handler("my_table", |request| {
@@ -2244,7 +2250,7 @@ mod tests {
let body = request.body().unwrap().as_bytes().unwrap();
let body: serde_json::Value = serde_json::from_slice(body).unwrap();
let mut expected_body = serde_json::json!({
let expected_body = serde_json::json!({
"vector_column": "my_vector",
"prefilter": false,
"k": 42,
@@ -2255,14 +2261,13 @@ mod tests {
"nprobes": 12,
"minimum_nprobes": 12,
"maximum_nprobes": 12,
"vector": vector_f32_to_f64(&[0.1, 0.2, 0.3]),
"lower_bound": Option::<f32>::None,
"upper_bound": Option::<f32>::None,
"ef": Option::<usize>::None,
"refine_factor": 2,
"version": null,
});
// Pass vector separately to make sure it matches f32 precision.
expected_body["vector"] = vec![0.1f32, 0.2, 0.3].into();
assert_eq!(body, expected_body);
let data = RecordBatch::try_new(