chore: update lance dependency to v1.0.0-beta.16 (#2835)

## Summary
- bump all Lance crates to v1.0.0-beta.16 via ci/set_lance_version.py
- refresh Cargo.lock (reqwest/opendal/etc.) to satisfy the new release

## Verification
- cargo clippy --workspace --tests --all-features -- -D warnings
- cargo fmt --all

Triggered by
[refs/tags/v1.0.0-beta.16](https://github.com/lance-format/lance/releases/tag/v1.0.0-beta.16)

---------

Co-authored-by: Jack Ye <yezhaoqin@gmail.com>
This commit is contained in:
LanceDB Robot
2025-12-02 15:07:03 +08:00
committed by GitHub
parent 434f4124fc
commit 4b5bb2d76c
3 changed files with 80 additions and 138 deletions

173
Cargo.lock generated
View File

@@ -2,15 +2,6 @@
# It is not intended for manual editing.
version = 3
[[package]]
name = "addr2line"
version = "0.25.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b5d307320b3181d6d7954e663bd7c774a838b8220fe0593c86d9fb09f498b4b"
dependencies = [
"gimli",
]
[[package]]
name = "adler2"
version = "2.0.1"
@@ -1066,30 +1057,15 @@ dependencies = [
[[package]]
name = "backon"
version = "1.5.2"
version = "1.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "592277618714fbcecda9a02ba7a8781f319d26532a88553bbacc77ba5d2b3a8d"
checksum = "cffb0e931875b666fc4fcb20fee52e9bbd1ef836fd9e9e04ec21555f9f85f7ef"
dependencies = [
"fastrand",
"gloo-timers",
"tokio",
]
[[package]]
name = "backtrace"
version = "0.3.76"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bb531853791a215d7c62a30daf0dde835f381ab5de4589cfe7c649d2cbe92bd6"
dependencies = [
"addr2line",
"cfg-if",
"libc",
"miniz_oxide",
"object",
"rustc-demangle",
"windows-link 0.2.1",
]
[[package]]
name = "base16ct"
version = "0.1.1"
@@ -1152,7 +1128,7 @@ dependencies = [
"bitflags 2.9.4",
"cexpr",
"clang-sys",
"itertools 0.11.0",
"itertools 0.12.1",
"lazy_static",
"lazycell",
"log",
@@ -3126,8 +3102,8 @@ checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c"
[[package]]
name = "fsst"
version = "1.0.0-beta.14"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.14#ca17b653c0cabc00adf117a9f05c881f2ebbdb3a"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
dependencies = [
"arrow-array",
"rand 0.9.2",
@@ -3653,12 +3629,6 @@ dependencies = [
"wasm-bindgen",
]
[[package]]
name = "gimli"
version = "0.32.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e629b9b98ef3dd8afe6ca2bd0f89306cec16d43d907889945bc5d6687f2f13c7"
[[package]]
name = "glob"
version = "0.3.3"
@@ -4036,7 +4006,7 @@ dependencies = [
"libc",
"percent-encoding",
"pin-project-lite",
"socket2 0.5.10",
"socket2 0.6.0",
"system-configuration",
"tokio",
"tower-service",
@@ -4251,7 +4221,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4b0f83760fb341a774ed326568e19f5a863af4a952def8c39f9ab92fd95b88e5"
dependencies = [
"equivalent",
"hashbrown 0.16.0",
"hashbrown 0.15.5",
"serde",
"serde_core",
]
@@ -4300,17 +4270,6 @@ version = "3.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8bb03732005da905c88227371639bf1ad885cc712789c011c31c5fb3ab3ccf02"
[[package]]
name = "io-uring"
version = "0.7.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "046fa2d4d00aea763528b4950358d0ead425372445dc8ff86312b3c69ff7727b"
dependencies = [
"bitflags 2.9.4",
"cfg-if",
"libc",
]
[[package]]
name = "ipnet"
version = "2.11.0"
@@ -4501,8 +4460,8 @@ dependencies = [
[[package]]
name = "lance"
version = "1.0.0-beta.14"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.14#ca17b653c0cabc00adf117a9f05c881f2ebbdb3a"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
dependencies = [
"arrow",
"arrow-arith",
@@ -4567,8 +4526,8 @@ dependencies = [
[[package]]
name = "lance-arrow"
version = "1.0.0-beta.14"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.14#ca17b653c0cabc00adf117a9f05c881f2ebbdb3a"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
dependencies = [
"arrow-array",
"arrow-buffer",
@@ -4586,8 +4545,8 @@ dependencies = [
[[package]]
name = "lance-bitpacking"
version = "1.0.0-beta.14"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.14#ca17b653c0cabc00adf117a9f05c881f2ebbdb3a"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
dependencies = [
"arrayref",
"paste",
@@ -4596,8 +4555,8 @@ dependencies = [
[[package]]
name = "lance-core"
version = "1.0.0-beta.14"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.14#ca17b653c0cabc00adf117a9f05c881f2ebbdb3a"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
dependencies = [
"arrow-array",
"arrow-buffer",
@@ -4633,8 +4592,8 @@ dependencies = [
[[package]]
name = "lance-datafusion"
version = "1.0.0-beta.14"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.14#ca17b653c0cabc00adf117a9f05c881f2ebbdb3a"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
dependencies = [
"arrow",
"arrow-array",
@@ -4664,8 +4623,8 @@ dependencies = [
[[package]]
name = "lance-datagen"
version = "1.0.0-beta.14"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.14#ca17b653c0cabc00adf117a9f05c881f2ebbdb3a"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
dependencies = [
"arrow",
"arrow-array",
@@ -4682,8 +4641,8 @@ dependencies = [
[[package]]
name = "lance-encoding"
version = "1.0.0-beta.14"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.14#ca17b653c0cabc00adf117a9f05c881f2ebbdb3a"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
dependencies = [
"arrow-arith",
"arrow-array",
@@ -4720,8 +4679,8 @@ dependencies = [
[[package]]
name = "lance-file"
version = "1.0.0-beta.14"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.14#ca17b653c0cabc00adf117a9f05c881f2ebbdb3a"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
dependencies = [
"arrow-arith",
"arrow-array",
@@ -4753,8 +4712,8 @@ dependencies = [
[[package]]
name = "lance-geo"
version = "1.0.0-beta.14"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.14#ca17b653c0cabc00adf117a9f05c881f2ebbdb3a"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
dependencies = [
"datafusion",
"geo-types",
@@ -4765,8 +4724,8 @@ dependencies = [
[[package]]
name = "lance-index"
version = "1.0.0-beta.14"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.14#ca17b653c0cabc00adf117a9f05c881f2ebbdb3a"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
dependencies = [
"arrow",
"arrow-arith",
@@ -4827,8 +4786,8 @@ dependencies = [
[[package]]
name = "lance-io"
version = "1.0.0-beta.14"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.14#ca17b653c0cabc00adf117a9f05c881f2ebbdb3a"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
dependencies = [
"arrow",
"arrow-arith",
@@ -4868,8 +4827,8 @@ dependencies = [
[[package]]
name = "lance-linalg"
version = "1.0.0-beta.14"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.14#ca17b653c0cabc00adf117a9f05c881f2ebbdb3a"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
dependencies = [
"arrow-array",
"arrow-buffer",
@@ -4885,8 +4844,8 @@ dependencies = [
[[package]]
name = "lance-namespace"
version = "1.0.0-beta.14"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.14#ca17b653c0cabc00adf117a9f05c881f2ebbdb3a"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
dependencies = [
"arrow",
"async-trait",
@@ -4898,8 +4857,8 @@ dependencies = [
[[package]]
name = "lance-namespace-impls"
version = "1.0.0-beta.14"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.14#ca17b653c0cabc00adf117a9f05c881f2ebbdb3a"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
dependencies = [
"arrow",
"arrow-ipc",
@@ -4937,8 +4896,8 @@ dependencies = [
[[package]]
name = "lance-table"
version = "1.0.0-beta.14"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.14#ca17b653c0cabc00adf117a9f05c881f2ebbdb3a"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
dependencies = [
"arrow",
"arrow-array",
@@ -4977,8 +4936,8 @@ dependencies = [
[[package]]
name = "lance-testing"
version = "1.0.0-beta.14"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.14#ca17b653c0cabc00adf117a9f05c881f2ebbdb3a"
version = "1.0.0-beta.16"
source = "git+https://github.com/lance-format/lance.git?tag=v1.0.0-beta.16#ff89675ebaca362412c3ec9d62d2de3885a57727"
dependencies = [
"arrow-array",
"arrow-schema",
@@ -5818,15 +5777,6 @@ version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3"
[[package]]
name = "object"
version = "0.37.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ff76201f031d8863c38aa7f905eca4f53abbfa15f609db4277d44cd8938f33fe"
dependencies = [
"memchr",
]
[[package]]
name = "object_store"
version = "0.12.4"
@@ -5867,12 +5817,13 @@ dependencies = [
[[package]]
name = "object_store_opendal"
version = "0.54.0"
version = "0.55.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5ce697ee723fdc3eaf6c457abf4059034be15167022b18b619993802cd1443d5"
checksum = "113ab0769e972eee585e57407b98de08bda5354fa28e8ba4d89038d6cb6a8991"
dependencies = [
"async-trait",
"bytes",
"chrono",
"futures",
"object_store",
"opendal",
@@ -5922,30 +5873,31 @@ dependencies = [
[[package]]
name = "opendal"
version = "0.54.0"
version = "0.55.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ffb9838d0575c6dbaf3fcec7255af8d5771996d4af900bbb6fa9a314dec00a1a"
checksum = "d075ab8a203a6ab4bc1bce0a4b9fe486a72bf8b939037f4b78d95386384bc80a"
dependencies = [
"anyhow",
"backon",
"base64 0.22.1",
"bytes",
"chrono",
"crc32c",
"futures",
"getrandom 0.2.16",
"http 1.3.1",
"http-body 1.0.1",
"jiff",
"log",
"md-5",
"percent-encoding",
"quick-xml 0.37.5",
"quick-xml 0.38.3",
"reqsign",
"reqwest",
"serde",
"serde_json",
"sha2",
"tokio",
"url",
"uuid",
]
@@ -6761,7 +6713,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "be769465445e8c1474e9c5dac2018218498557af32d9ed057325ec9a41ae81bf"
dependencies = [
"heck 0.4.1",
"itertools 0.11.0",
"itertools 0.12.1",
"log",
"multimap",
"once_cell",
@@ -6781,7 +6733,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a56d757972c98b346a9b766e3f02746cde6dd1cd1d1d563472929fdd74bec4d"
dependencies = [
"anyhow",
"itertools 0.11.0",
"itertools 0.12.1",
"proc-macro2",
"quote",
"syn 2.0.106",
@@ -6951,7 +6903,7 @@ dependencies = [
"quinn-udp",
"rustc-hash 2.1.1",
"rustls 0.23.31",
"socket2 0.5.10",
"socket2 0.6.0",
"thiserror 2.0.17",
"tokio",
"tracing",
@@ -6988,7 +6940,7 @@ dependencies = [
"cfg_aliases",
"libc",
"once_cell",
"socket2 0.5.10",
"socket2 0.6.0",
"tracing",
"windows-sys 0.60.2",
]
@@ -7331,9 +7283,9 @@ dependencies = [
[[package]]
name = "reqwest"
version = "0.12.23"
version = "0.12.24"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d429f34c8092b2d42c7c93cec323bb4adeb7c67698f70839adec842ec10c7ceb"
checksum = "9d0946410b9f7b082a427e4ef5c8ff541a88b357bc6c637c40db3a68ac70a36f"
dependencies = [
"async-compression",
"base64 0.22.1",
@@ -7515,12 +7467,6 @@ dependencies = [
"serde_derive",
]
[[package]]
name = "rustc-demangle"
version = "0.1.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "56f7d92ca342cea22a06f2121d944b4fd82af56988c270852495420f961d4ace"
[[package]]
name = "rustc-hash"
version = "1.1.0"
@@ -8813,29 +8759,26 @@ dependencies = [
[[package]]
name = "tokio"
version = "1.47.1"
version = "1.48.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "89e49afdadebb872d3145a5638b59eb0691ea23e46ca484037cfab3b76b95038"
checksum = "ff360e02eab121e0bc37a2d3b4d4dc622e6eda3a8e5253d5435ecf5bd4c68408"
dependencies = [
"backtrace",
"bytes",
"io-uring",
"libc",
"mio",
"parking_lot",
"pin-project-lite",
"signal-hook-registry",
"slab",
"socket2 0.6.0",
"tokio-macros",
"windows-sys 0.59.0",
"windows-sys 0.61.2",
]
[[package]]
name = "tokio-macros"
version = "2.5.0"
version = "2.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8"
checksum = "af407857209536a95c8e56f8231ef2c2e2aff839b22e07a1ffcbc617e9db9fa5"
dependencies = [
"proc-macro2",
"quote",

View File

@@ -15,20 +15,20 @@ categories = ["database-implementations"]
rust-version = "1.78.0"
[workspace.dependencies]
lance = { "version" = "=1.0.0-beta.14", default-features = false, "tag" = "v1.0.0-beta.14", "git" = "https://github.com/lance-format/lance.git" }
lance-core = { "version" = "=1.0.0-beta.14", "tag" = "v1.0.0-beta.14", "git" = "https://github.com/lance-format/lance.git" }
lance-datagen = { "version" = "=1.0.0-beta.14", "tag" = "v1.0.0-beta.14", "git" = "https://github.com/lance-format/lance.git" }
lance-file = { "version" = "=1.0.0-beta.14", "tag" = "v1.0.0-beta.14", "git" = "https://github.com/lance-format/lance.git" }
lance-io = { "version" = "=1.0.0-beta.14", default-features = false, "tag" = "v1.0.0-beta.14", "git" = "https://github.com/lance-format/lance.git" }
lance-index = { "version" = "=1.0.0-beta.14", "tag" = "v1.0.0-beta.14", "git" = "https://github.com/lance-format/lance.git" }
lance-linalg = { "version" = "=1.0.0-beta.14", "tag" = "v1.0.0-beta.14", "git" = "https://github.com/lance-format/lance.git" }
lance-namespace = { "version" = "=1.0.0-beta.14", "tag" = "v1.0.0-beta.14", "git" = "https://github.com/lance-format/lance.git" }
lance-namespace-impls = { "version" = "=1.0.0-beta.14", default-features = false, "tag" = "v1.0.0-beta.14", "git" = "https://github.com/lance-format/lance.git" }
lance-table = { "version" = "=1.0.0-beta.14", "tag" = "v1.0.0-beta.14", "git" = "https://github.com/lance-format/lance.git" }
lance-testing = { "version" = "=1.0.0-beta.14", "tag" = "v1.0.0-beta.14", "git" = "https://github.com/lance-format/lance.git" }
lance-datafusion = { "version" = "=1.0.0-beta.14", "tag" = "v1.0.0-beta.14", "git" = "https://github.com/lance-format/lance.git" }
lance-encoding = { "version" = "=1.0.0-beta.14", "tag" = "v1.0.0-beta.14", "git" = "https://github.com/lance-format/lance.git" }
lance-arrow = { "version" = "=1.0.0-beta.14", "tag" = "v1.0.0-beta.14", "git" = "https://github.com/lance-format/lance.git" }
lance = { "version" = "=1.0.0-beta.16", default-features = false, "tag" = "v1.0.0-beta.16", "git" = "https://github.com/lance-format/lance.git" }
lance-core = { "version" = "=1.0.0-beta.16", "tag" = "v1.0.0-beta.16", "git" = "https://github.com/lance-format/lance.git" }
lance-datagen = { "version" = "=1.0.0-beta.16", "tag" = "v1.0.0-beta.16", "git" = "https://github.com/lance-format/lance.git" }
lance-file = { "version" = "=1.0.0-beta.16", "tag" = "v1.0.0-beta.16", "git" = "https://github.com/lance-format/lance.git" }
lance-io = { "version" = "=1.0.0-beta.16", default-features = false, "tag" = "v1.0.0-beta.16", "git" = "https://github.com/lance-format/lance.git" }
lance-index = { "version" = "=1.0.0-beta.16", "tag" = "v1.0.0-beta.16", "git" = "https://github.com/lance-format/lance.git" }
lance-linalg = { "version" = "=1.0.0-beta.16", "tag" = "v1.0.0-beta.16", "git" = "https://github.com/lance-format/lance.git" }
lance-namespace = { "version" = "=1.0.0-beta.16", "tag" = "v1.0.0-beta.16", "git" = "https://github.com/lance-format/lance.git" }
lance-namespace-impls = { "version" = "=1.0.0-beta.16", default-features = false, "tag" = "v1.0.0-beta.16", "git" = "https://github.com/lance-format/lance.git" }
lance-table = { "version" = "=1.0.0-beta.16", "tag" = "v1.0.0-beta.16", "git" = "https://github.com/lance-format/lance.git" }
lance-testing = { "version" = "=1.0.0-beta.16", "tag" = "v1.0.0-beta.16", "git" = "https://github.com/lance-format/lance.git" }
lance-datafusion = { "version" = "=1.0.0-beta.16", "tag" = "v1.0.0-beta.16", "git" = "https://github.com/lance-format/lance.git" }
lance-encoding = { "version" = "=1.0.0-beta.16", "tag" = "v1.0.0-beta.16", "git" = "https://github.com/lance-format/lance.git" }
lance-arrow = { "version" = "=1.0.0-beta.16", "tag" = "v1.0.0-beta.16", "git" = "https://github.com/lance-format/lance.git" }
ahash = "0.8"
# Note that this one does not include pyarrow
arrow = { version = "56.2", optional = false }

View File

@@ -2429,9 +2429,8 @@ class AsyncQueryBase(object):
>>> from lancedb import connect_async
>>> async def doctest_example():
... conn = await connect_async("./.lancedb")
... table = await conn.create_table("my_table", [{"vector": [99, 99]}])
... query = [100, 100]
... plan = await table.query().nearest_to([1, 2]).explain_plan(True)
... table = await conn.create_table("my_table", [{"vector": [99.0, 99.0]}])
... plan = await table.query().nearest_to([1.0, 2.0]).explain_plan(True)
... print(plan)
>>> asyncio.run(doctest_example()) # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
ProjectionExec: expr=[vector@0 as vector, _distance@2 as _distance]
@@ -2440,6 +2439,7 @@ class AsyncQueryBase(object):
SortExec: TopK(fetch=10), expr=[_distance@2 ASC NULLS LAST, _rowid@1 ASC NULLS LAST], preserve_partitioning=[false]
KNNVectorDistance: metric=l2
LanceRead: uri=..., projection=[vector], ...
<BLANKLINE>
Parameters
----------
@@ -3141,10 +3141,9 @@ class AsyncHybridQuery(AsyncStandardQuery, AsyncVectorQueryBase):
>>> from lancedb.index import FTS
>>> async def doctest_example():
... conn = await connect_async("./.lancedb")
... table = await conn.create_table("my_table", [{"vector": [99, 99], "text": "hello world"}])
... table = await conn.create_table("my_table", [{"vector": [99.0, 99.0], "text": "hello world"}])
... await table.create_index("text", config=FTS(with_position=False))
... query = [100, 100]
... plan = await table.query().nearest_to([1, 2]).nearest_to_text("hello").explain_plan(True)
... plan = await table.query().nearest_to([1.0, 2.0]).nearest_to_text("hello").explain_plan(True)
... print(plan)
>>> asyncio.run(doctest_example()) # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
Vector Search Plan:
@@ -3418,9 +3417,8 @@ class BaseQueryBuilder(object):
>>> from lancedb import connect_async
>>> async def doctest_example():
... conn = await connect_async("./.lancedb")
... table = await conn.create_table("my_table", [{"vector": [99, 99]}])
... query = [100, 100]
... plan = await table.query().nearest_to([1, 2]).explain_plan(True)
... table = await conn.create_table("my_table", [{"vector": [99.0, 99.0]}])
... plan = await table.query().nearest_to([1.0, 2.0]).explain_plan(True)
... print(plan)
>>> asyncio.run(doctest_example()) # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
ProjectionExec: expr=[vector@0 as vector, _distance@2 as _distance]
@@ -3429,6 +3427,7 @@ class BaseQueryBuilder(object):
SortExec: TopK(fetch=10), expr=[_distance@2 ASC NULLS LAST, _rowid@1 ASC NULLS LAST], preserve_partitioning=[false]
KNNVectorDistance: metric=l2
LanceRead: uri=..., projection=[vector], ...
<BLANKLINE>
Parameters
----------