Commit Graph
3641 Commits
Author SHA1 Message Date
ChilePiquin ab791fb708 fix(sdk): align Optimize behavior and inherit Embedded policy 2026-11-19 17:23:30 -08:00
ChilePiquin 89f3de253f fix(sdk): retain deprecated compaction API compatibility 2026-11-19 16:07:34 -08:00
ChilePiquin 7a690bac71 test(sdk): align Optimize diagnostics and complete examples 2026-11-19 15:40:44 -08:00
ChilePiquin 1a4af3d7d9 refactor(sdk): share Optimize submission and option conversion 2026-11-19 15:40:44 -08:00
ChilePiquin d4a3683aa9 feat(rust): align prewarm options and test job submission contracts 2026-11-19 15:40:44 -08:00
ChilePiquin ba2e7f650b refactor(sdk)!: flatten Optimize options across bindings
BREAKING CHANGE: Pass Optimize settings as Python keyword arguments or one flat TypeScript OptimizeOptions object. Remove data_options/dataOptions wrappers and OptimizeDataOptions, accept Rust OptimizeOptions directly, retain OptimizeOverrides for field presence, and rename index-maintenance options to IndexOptimizeOptions.
2026-11-19 15:40:25 -08:00
ChilePiquin c3c26b8c6e refactor(sdk)!: align Optimize results and data options
BREAKING CHANGE: Replace CompactionResult and SDK compaction option types with OptimizeResult and OptimizeDataOptions/OptimizeDataOverrides, rename compaction_options/compactionOptions to data_options/dataOptions, move the Python result module to lancedb.optimize, and use RewriteDataWithOptions for the Rust action.
2026-11-19 15:40:25 -08:00
ChilePiquin c629d5b4aa refactor(sdk)!: standardize compaction APIs on Optimize
BREAKING CHANGE: Replace compact_async/compactAsync with optimize_async/optimizeAsync, Rust compact(overrides) with optimize(overrides), and Python compact_files() with optimize(action="rewrite_data"). No compatibility aliases are retained.
2026-11-19 15:40:25 -08:00
Will JonesandClaude Opus 5.5 4ac2728e73 ci: scope workflow permissions and drop unverified downloads (#5103)
## Summary

Fixes four high-severity Aikido findings in CI and the Dockerfile.

- **Workflow permissions:** `npm-publish.yml` and
`codex-update-lance-dependency.yml` now set `permissions: {}` at the
workflow level and grant permissions per job.
- `npm-publish`: only `publish` gets `id-token: write` (npm provenance).
Nothing in the workflow needed `contents: write`, so every job is now
read-only.
- `codex-update-lance-dependency`: keeps `contents: write`, because the
branch is pushed with the checkout token. It drops `pull-requests:
write` and `actions: read`, because all `gh` calls use `ROBOT_TOKEN`.
- **license-header-check:** replaces `curl .../master/install.sh | bash`
with `go install …@v1.5.0`. Go verifies the module against
sum.golang.org, so we don't maintain a hash ourselves. Go is
preinstalled on `ubuntu-latest`.
- **Dockerfile:** drops the rustup `curl | sh` along with
`build-essential`, `protoc`, and `git`, and runs as a non-root `lancedb`
user. `lancedb` installs from prebuilt `manylinux_2_28` wheels, and the
toolchain was only needed for the tantivy FTS support removed in #3282.

Alternatives considered for the Dockerfile, in case we want Rust in the
image:
- `COPY --from=rust:<ver>-slim-bookworm@sha256:…` to copy the toolchain
from the official image, pinned by digest.
- Download `rustup-init` from `static.rust-lang.org` and check it
against the published `.sha256`.

Neither seemed worth it for an image that only runs `pip install
lancedb`.

## Evidence

- In a clean Python 3.12 venv, `pip install --only-binary :all: lancedb`
installed 0.41.0, and building an FTS index and querying it worked.
Docker wasn't available, so the image itself wasn't built.
- Running `license-header-checker` v1.5.0 installed via `go install`
over `rust/` reports `license_ok: 258 files`.
- This PR runs both the `npm-publish` dry run and
`license-header-check`, because both workflows' path filters include
their own files.

## Merge Risk

**Door:** two-way; CI config and an example Dockerfile only.
**Blast Radius:** release automation. If `npm publish` or the Codex bump
job needs a permission I removed, it will fail on the next tag or
dispatch, and restoring that one permission fixes it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 14:42:22 -08:00
Will JonesandClaude Opus 5.5 3e712f5105 fix: bump blob v2 docs test to lancedb 0.42.0-beta.20 (#5102)
## Summary

The blob v2 TypeScript docs test pinned `@lancedb/lancedb`
`0.41.0-beta.8`, which pulls `@huggingface/transformers` 3.0.2 and
`sharp` 0.33.5. Aikido flags that `sharp` with 2 critical and 1 high
advisory. Bumping to `0.42.0-beta.20` brings transformers 4.3.2 and
`sharp` 0.35.5, matching what the `nodejs` package already ships. The
stable `0.41.0` still uses transformers 3.0.2, so it doesn't fix this.

## Evidence

`npm install --package-lock-only` reports `found 0 vulnerabilities`, and
`npm test` passes 4/4 locally against `0.42.0-beta.20`.

## Merge Risk

**Door:** two-way; only a docs test lockfile changes.
**Blast Radius:** none (docs test only, not run in PR CI).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 11:25:46 -08:00
Will JonesandClaude Opus 5.5 7d33f7ba94 ci: prioritize Rust security updates in dependabot config (#5100)
## Summary

Dependabot wasn't getting security fixes in, and its Rust PRs were
failing CI:

- Security updates were disabled for the repo, so ~170 open alerts never
got a PR. (Now enabled in repo settings; not part of this diff.)
- The `pip` entry for `/python` never touched `uv.lock`, so Python had
no Dependabot PRs at all.
- With `versioning-strategy: lockfile-only`, breaking bumps such as
reqwest 0.12 → 0.13 (#4781), tokenizers 0.19 → 0.23 (#4905), sha2
(#4230) and base64 (#4229) write a `Cargo.lock` that the `Cargo.toml`
requirements don't allow. Every `--locked` build then fails before
compiling.

The priority is Rust, which is statically linked into the shipped
binaries. Python and npm deps are resolved in users' environments, so
those are best effort.

| Entry | Version updates | Security updates |
|---|---|---|
| cargo `/` | weekly, minor/patch, one group | grouped |
| uv `/python` (was `pip`) | monthly, minor/patch, one group | grouped |
| npm `/nodejs`, `/nodejs/examples` | monthly, minor/patch, one group |
grouped |
| docs, docs tests, `/java` | off | grouped |

Breaking bumps are excluded with `allow.update-types`, which the docs
say applies only to version updates. An `ignore` rule would also
suppress security updates. `dependency-type: all` keeps transitive
dependencies in scope for security fixes, which also means the weekly
cargo PR now bumps transitive crates within their allowed ranges.

A security fix that's only available as a breaking bump will still
produce a failing PR and need a manual `Cargo.toml` change.

## Merge Risk

**Door:** two-way; config only.
**Blast Radius:** Dependabot PRs. Config errors only surface after
merge, on Dependabot's next run.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 11:25:27 -08:00
Shu Chen c136022c7b ci: pin third-party GitHub Actions to full commit SHAs (#4922)
Pin every remaining third-party action reference in `.github/` to a full
40-character commit SHA, with the intended version in a trailing comment
(`uses: owner/action@<sha> # vX.Y.Z`), following the pins already in
`cli.yml`, `typos.yml` and `make-release-commit.yml`. Fixes #3293.

53 references across 13 files change, covering 16 actions, including the
branch refs called out in the issue (`dtolnay/rust-toolchain@master`,
`@stable`) and `pypa/gh-action-pypi-publish@release/v1`. Each SHA is the
commit its current tag or branch resolves to today, so the code that
runs is unchanged. Comments name the most specific tag on that commit
(for example `v2.9.3` for `Swatinem/rust-cache@v2`); where no such tag
exists, they keep the original ref (`v1` for `srvaroa/labeler` and
`rui314/setup-mold`, `v3` for `addnab/docker-run-action`,
`stable`/`master` for `dtolnay/rust-toolchain`). The `stable` branch of
`dtolnay/rust-toolchain` defaults its `toolchain` input to `stable`, so
pinning its SHA keeps the `nodejs.yml` step that passes no toolchain on
stable.

GitHub-maintained `actions/*` references are left on their tags, as in
the existing pins. Keeping SHAs current through Dependabot is the
sibling issue and is not part of this change.

Validation:

- No third-party `uses:` reference in `.github/` is left without a
40-character SHA (53 before, 0 after).
- For all 23 distinct third-party pins in `.github/`, `git ls-remote`
against the upstream repository confirms the SHA is the commit that the
commented tag or branch points to. A deliberately altered SHA and a
reverted tag ref were both caught.
- `pre-commit run` on the changed files passes (check-yaml, end-of-file,
trailing whitespace, typos).
- actionlint 1.7.12 reports the same 35 findings on `main` and on this
branch, all of them existing ones (custom runner labels and composite
actions under `workflows/`). It reports none for this change.
2026-11-19 11:18:10 -08:00
dependabot[bot] e0995c39c2 chore(deps): bump @opentelemetry/sdk-metrics from 2.12.0 to 2.12.1 in /nodejs (#5051)
Bumps the nodejs-deps group in /nodejs with 1 update:
[@opentelemetry/sdk-metrics](https://github.com/open-telemetry/opentelemetry-js).

Updates `@opentelemetry/sdk-metrics` from 2.12.0 to 2.12.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/open-telemetry/opentelemetry-js/releases">@​opentelemetry/sdk-metrics's
releases</a>.</em></p>
<blockquote>
<h2>v2.12.1</h2>
<h2>2.12.1</h2>
<h3>🐛 Bug Fixes</h3>
<ul>
<li>fix(resources): specify full path for ioreg command on Darwin, and
kenv command on BSD for <code>host.id</code> <a
href="https://github.com/trentm"><code>@​trentm</code></a></li>
<li>ci: update the W3C harness for Python 3.14 <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/pull/7236">#7236</a>
<a
href="https://github.com/adityareddy-dev"><code>@​adityareddy-dev</code></a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/open-telemetry/opentelemetry-js/blob/v2.12.1/CHANGELOG.md">@​opentelemetry/sdk-metrics's
changelog</a>.</em></p>
<blockquote>
<h2>2.12.1</h2>
<h3>🐛 Bug Fixes</h3>
<ul>
<li>fix(resources): specify full path for ioreg command on Darwin, and
kenv command on BSD for <code>host.id</code> <a
href="https://github.com/trentm"><code>@​trentm</code></a></li>
<li>ci: update the W3C harness for Python 3.14 <a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/pull/7236">#7236</a>
<a
href="https://github.com/adityareddy-dev"><code>@​adityareddy-dev</code></a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/open-telemetry/opentelemetry-js/commit/8795a06d2c025d5dc454d85cec785849844cc5d9"><code>8795a06</code></a>
chore: prepare next v2.x release (<a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/issues/7296">#7296</a>)</li>
<li><a
href="https://github.com/open-telemetry/opentelemetry-js/commit/66a9cddb49bc01fcce1220f586dd8d2029814e55"><code>66a9cdd</code></a>
ci: update W3C harness for Python 3.14 (<a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/issues/7236">#7236</a>)
(<a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/issues/7295">#7295</a>)</li>
<li><a
href="https://github.com/open-telemetry/opentelemetry-js/commit/55398d41c4e2174ab7fa40ed4cc3a3d2d44b337f"><code>55398d4</code></a>
fix(resources): specify full path for ioreg command on Darwin, and kenv
comma...</li>
<li><a
href="https://github.com/open-telemetry/opentelemetry-js/commit/f698f0ce71852c1743bc35ee077e31b61f636743"><code>f698f0c</code></a>
ci: drop 'latest' dist-tag option from v2.x publish workflow (<a
href="https://redirect.github.com/open-telemetry/opentelemetry-js/issues/7222">#7222</a>)</li>
<li>See full diff in <a
href="https://github.com/open-telemetry/opentelemetry-js/compare/v2.12.0...v2.12.1">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@opentelemetry/sdk-metrics&package-manager=npm_and_yarn&previous-version=2.12.0&new-version=2.12.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-19 10:25:27 -08:00
Will JonesandClaude Opus 5.5 a274ecb16e fix: bump yanked libsais-rs to 0.2.4 (#5093)
## Summary

The `deny` job on main fails because `libsais-rs` 0.2.0, pulled in by
`lance-index`, was yanked from crates.io. This bumps it to 0.2.4 in
`Cargo.lock` and `docs/web-tests/rs/Cargo.lock`. Lockfile-only change.

## Evidence

Before (CI on main):

```text
error[yanked]: detected yanked crate (try `cargo update -p libsais-rs`)
advisories FAILED, bans ok, licenses ok, sources ok
```

After (local, same args as CI):

```text
$ cargo deny --all-features check advisories bans licenses sources
advisories ok, bans ok, licenses ok, sources ok
```

## Merge Risk

**Door:** two-way; lockfile patch bump.
**Blast Radius:** `lance-index` code that builds suffix arrays.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 08:50:49 -08:00
Xuanwo ae665a4655 docs: mark Blob v2 GA for ordinary tables in Enterprise 1.15.0 (#5094)
The Quickstart and table guide describe Blob columns as Early access
without naming a product version. Document general availability for
ordinary tables starting with LanceDB Enterprise 1.15.0 and make the
Realtime Engine and MemWAL scope visible in the table guide.

Xuanwo confirmed Enterprise 1.15.0 as the first edition to document GA
for ordinary-table Blob v2. Enterprise 1.13.0 and 1.14.0 retain their
existing status. The Enterprise 1.15.0 edition must carry this wording
when prepared from its release inputs. Earlier saved editions keep their
historical guidance.

Refs ENT-3556.
2026-11-19 14:12:40 +08:00
Sarwar BhuiyanandClaude Opus 5.5 4b428101dd feat: expose the RTREE index in the Python and TypeScript SDKs (#4942)
Part of #4554. Supersedes #4555.

This exposes Lance's R-tree index in the Python and TypeScript SDKs.
Python gets a `lancedb.index.RTree` config with an optional `page_size`,
accepted by `create_index(config=...)` on local, async and remote
tables. TypeScript gets `Index.rtree({ pageSize })` and `RTreeOptions`.
Both map to the Rust crate's existing `Index::RTree`, so remote tables
send `index_type: "RTREE"`. The index accelerates `ST_Intersects`,
`ST_Contains`, `ST_Within`, `ST_Touches`, `ST_Crosses`, `ST_Overlaps`,
`ST_Covers` and `ST_CoveredBy` filters between a GeoArrow column and a
constant geometry, in either argument order, including as a prefilter on
vector search. The scalar index docs page gets an R-tree section.

`geo` is now a default feature of the Python and Node packages. Without
it, a local table can neither build the index nor evaluate `ST_*`
filters, and because wheels and npm packages are prebuilt, an opt-in
Cargo feature would not reach users. pylance already ships with `geo`
on. It adds pure-Rust crates under licenses that `deny.toml` already
allows. `Cargo.lock` doesn't change, and the third-party license notices
are regenerated.

The cost is size: the macOS arm64 release wheel grows from 69.4 MB to
71.7 MB (+2.4 MB, +3.4%).

The tests pin the constant-first predicate bug that held up #4555, which
lance-format/lance#10080 fixed, in queries, `delete()` and `update()`,
with and without the index.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 16:43:12 -08:00
Brendan Clement 2dd1a6ad25 docs: add sidebar icons for Function failures and catalog pagination (#5092)
## Summary

Add a warning triangle for Function Failures and a numbered list for
Catalog listing pagination in the documentation sidebar. Each page gets
one `icon` field in its metadata.

## Verification

Assembled the documentation locally and confirmed both icon fields on
the generated sidebar pages.
2026-11-18 16:02:06 -08:00
Bruno Ramirez 72b46439bf ci: publish and verify the CLI shell installer (#5090)
#5082 added the CLI installer, but users still needed a repository
checkout to run the script. This PR publishes it at
`https://downloads.lancedb.com/cli/install.sh` whenever
`scripts/install.sh` changes on `main`. The installer continues to fetch
binaries and checksums from GitHub Releases.

This was accomplished with the following changes:

- Serialize publishes and check out current `main` so retrying an old
run picks up the current script.
- Use GitHub OIDC to upload the installer to S3, invalidate its
CloudFront path, and compare the public download byte for byte with the
checked-out script.
- Allow a manual run on `main` for the first publish and retries. The
first run requires the `CLI_INSTALLER_AWS_ROLE_ARN` and
`CLI_INSTALLER_DISTRIBUTION_ID` repository variables.

### Testing

The installer failure-case tests passed. With simulated AWS and HTTP
responses, the publish step accepted matching bytes, rejected a stale
download, and stopped before upload when the distribution ID was
missing.
2026-11-18 15:38:02 -08:00
Bruno Ramirez 23f9d5a741 feat(sdk): support bound parameters in data prewarm (#5076)
Data prewarm methods accept filter expressions but cannot bind their
values, which forces applications to build literal SQL themselves. This
adds optional positional and named parameters to data-prewarm submission
and typed previews across Rust, Python, and TypeScript. Values use the
existing typed Arrow SQL transport and remain separate from the filter
text. Existing calls and job-handle behavior are preserved;
parameterized filters require a compatible LanceDB Enterprise server.

This was accomplished with the following changes:

- Add `PrewarmDataOptions::parameters(RecordBatch)` and forward the
batch through SQL submission and `EXPLAIN PREWARM` requests.
- Reuse Python's `QueryParameters` conversion for
synchronous/asynchronous, legacy/job-returning, and typed preview
methods.
- Add TypeScript positional-array, named-object, and explicit Arrow
parameter inputs, with safe scalar encoding and native IPC forwarding.
- Keep parameter values out of Rust option debug output and reject
invalid input before submission where possible.
- Add transport and codec regression tests, including injection-shaped
strings, typed Arrow values, legacy method forwarding, and typed preview
bindings.
- Document bound filters in the cache-prewarm guide with Python,
TypeScript, and Rust examples; update generic SQL parameter
documentation.

### Usage and behaviour

```python
job = table.prewarm_data_async(
    ["payload"], filter="id >= $minimum", parameters={"minimum": 1000}
)
job.wait()
```

```typescript
const job = await table.prewarmDataAsync({
  columns: ["payload"], filter: "id >= $1", parameters: [1000],
});
await job.wait();
```

Python accepts a sequence, mapping, or one-row Arrow batch/table.
TypeScript accepts scalar arrays/objects or one-row Arrow input; safe
integers and bigint use Int64, fractional numbers use Float64. Rust
accepts a one-row Arrow batch. Parameters bind filter values, while
table identity, branch, and concurrency keep their existing interfaces.
Submission-only methods also forward bindings and retain their existing
return behavior. Typed preview helpers accept the same parameters
without creating a job.

### Testing

Python prewarm Flight transport tests pass (65 cases), Embedded
compatibility tests pass (6 cases), and focused Node parameter/prewarm
tests pass (45 cases, including ten codec and native-boundary cases).
Earlier matching-server verification passed 57 Python/SQL scenarios, 14
Node scenarios, and Rust SDK checks, covering selective and empty plans,
typed values, authorization, pinned branches, legacy methods, and
injection-shaped strings. A bound job also survives a full runtime
restart. The guide submission examples were also verified in Python,
TypeScript, and Rust; the TypeScript example type-checks. Live-server
checks used filesystem storage.
2026-11-18 11:07:32 -08:00
Bruno Ramirez 3907a492c0 feat(sdk): add typed data prewarm previews (#5075)
LanceDB SDKs can submit data prewarm jobs, but callers have to issue SQL
directly to inspect a plan before warming. The existing text response
does not provide a typed pruning contract. This adds metadata-only
preview helpers across Rust, Python sync/async, and TypeScript, using a
compatible Enterprise server’s structured SQL response.

This was accomplished with the following changes:
- Add `explain_prewarm_data(PrewarmDataOptions)`, Python
`explain_prewarm_data(...)`, and TypeScript
`explainPrewarmData(options)`.
- Expose `PrewarmDataPlan` and `PrewarmPruningSummary`, preserving zero
versus unknown counts and future pruning-mode strings.
- Reuse submission options, identifier/filter validation, namespace and
branch context, and Azure source-account hint handling.
- Validate the versioned JSON response without parsing display text,
submitting a warming job, polling HTTP job APIs, or falling back to
REST.
- Add API documentation, Flight SQL transport tests, Python sync/async
response tests, and an opt-in live-service integration test.

### Usage and behaviour

```python
plan = table.explain_prewarm_data(["payload"], filter="quality > 0.7")
print(plan.table_version, plan.pruning.selected_fragments)
```

The helper returns a plan directly. It requires table Select plus
database/namespace Usage and a server supporting `EXPLAIN (FORMAT JSON)
PREWARM`. It reads metadata without creating a warming job. Selected
ranges are conservative physical candidates; unknown counts remain
`None`/`null`. A later submission resolves and plans its own snapshot.
Historical-version and Embedded table handles are unsupported.
2026-11-18 09:14:14 -08:00
Bruno Ramirez 96c25bd6b9 feat(nodejs): add Enterprise table override APIs (#5077)
Add TypeScript `getTableOverrides`, `updateTableOverrides`, and
`resetTableOverrides` for LanceDB Enterprise tables, delegating to the
shared Rust implementation used by Python.

Document that updates perform GET → recursive local merge → full PUT.
Unrelated fields are preserved from the read snapshot, but concurrent
edits can be overwritten. CLI `set` and REST PUT retain replacement
semantics.

Fix an empty SDK update to return the current snapshot without a PUT.
Live testing found that the previous implementation submitted an empty
replacement and failed when no overrides were configured. The fix
applies to Python, Rust, and TypeScript.

Add mock HTTP/local coverage and an opt-in Enterprise integration suite
for namespaces, branch isolation, REST replacement, validation failures,
historical handles, and empty updates.
2026-11-18 09:02:45 -08:00
Bruno Ramirez dd69a2c535 feat(cli): install release binaries with a shell script (#5082)
Install the public CLI from GitHub Releases with `sh
scripts/install.sh`. The script selects the macOS Apple Silicon or Linux
ARM64/x86-64 archive, verifies its SHA-256 and reported version, and
installs it under the user's home directory. Set `LANCEDB_VERSION` to
pin a release, including a beta. The default resolves GitHub's latest
stable tag, which must have CLI assets.

If an Enterprise or other `lancedb` is already on PATH, the installer
asks for a separate install directory. An existing destination
(including a symlink) is always preserved.

The installer workflow exercises that same release on all three native
targets and checks checksum failures and existing executable handling.
2026-11-18 08:40:53 -08:00
Jack Ye a6d7d02f71 docs: add semantic sampling guide (#5085)
Add a standalone Semantic Sampling guide immediately below Statistical
Sampling in Data Curation, with links from the curation overview and SQL
sampling reference. Explain per-partition row quotas, repeatability,
filtering order, and index requirements.

```sql
SELECT id, caption
FROM documents
TABLESAMPLE IVF (embedding, 100 ROWS)
REPEATABLE (42);
```
2026-11-18 01:19:59 -08:00
Xuanwo 9f58d8aab6 docs: add an ordinary Blob v2 photo tutorial (#5087)
The quickstart links to a Blob example that assumes both tables already
exist. Replace that gap with a from-empty photo tutorial: generate real
PNG files with the standard library, ingest an ordinary Blob v2 table,
filter metadata, save and compare exact image bytes, then create and
verify a filtered destination through Enterprise SQL or an Embedded
materialized copy.

Keep Early access and distinguish Enterprise 1.12.0 row-ID fetches from
deployment-dependent snapshot-bound reads. Cover source stability, range
reads and Function readers for large media, ambiguous write recovery,
and the absence of a SQL constructor for uploading client-side files.

The executable Embedded workflow passed on Python SDK 0.42.0b17 using
disposable local storage. Generated snippets, MDX compilation,
combined-site `mint validate`, and `mint broken-links --check-anchors
--check-redirects` passed. Enterprise connection/SQL examples were
checked against the public API and existing 1.12 documentation but were
not executed against an Enterprise deployment; this does not establish
SQL copy behavior after source cleanup. No saved editions or publication
state change.

Fixes
[OSS-3102](https://linear.app/lancedb/issue/OSS-3102/walk-users-from-image-files-to-a-filtered-blob-v2-table-copy).
2026-11-18 17:19:02 +08:00
Lance Release a98cffda4b Bump version: 0.42.0-beta.19 → 0.42.0-beta.20 v0.42.0-beta.20 2026-11-18 08:17:05 +00:00
Xuanwo a653d861ec fix(python): allow static diagnostic imports in Functions (#5084)
Functions previously rejected every `sys` or `importlib` import even
when the source only used a statically visible diagnostic. Allow exactly
`sys.stderr`, `sys.version_info`, and `importlib.metadata.version`, with
direct imports, `from` imports, and aliases treated identically whether
they appear at module level or inside the function or class body.

Every other use of a namespace-access module still fails at decoration.
The error now names the rejected operation, such as `sys.modules`, and
lists the supported diagnostic operations.

Tests package and execute the artifact offline for each import form, and
reject unsupported attributes, submodules, dynamic attribute access, and
rebinding. ENT-3918.
2026-11-18 16:15:42 +08:00
Xuanwo 4cab7d0b6f docs: show how to read and copy filtered blob rows (#5086)
The table guide starts with two tasks using the same `photos` table:
read the bytes of filtered images with the LanceDB Python SDK and copy
those images into another Enterprise table with `INSERT INTO … SELECT`.

The examples distinguish SDK descriptors, independent row-ID fetches,
Function readers and Enterprise 1.12.0 SQL results. The Enterprise
support page covers SDK, server and proxy compatibility when query-bound
reads fail.
2026-11-18 16:14:01 +08:00
Brendan Clement 13453ae5f8 docs: serve Attach Database at ingestion/attach-database (#5078)
The Attach Database page was renamed in the docs rework but kept its old
URL, `ingestion/migrate-from-embedded`. That reads like the wrong page
when we share the link.

This renames the file to `ingestion/attach-database`, updates its nav
entry and the two pages that link to it, and adds a redirect from the
old URL so existing links keep working.
2026-11-17 19:17:37 -08:00
Brendan Clement ee671533f9 docs: say the Tables page covers schema changes and field metadata (#5080)
The docs index lists each page by its title and description. The Tables
page holds the guide to field metadata, but its description only
mentioned creating, renaming and dropping tables.

In local runs of the agent evals, two of three docs-only agents searched
the index for "metadata", landed on the REST reference, and never found
the convention. This adds schema changes and field metadata to the
description and keywords, so that search finds the guide.
2026-11-17 19:06:45 -08:00
Brendan Clement e29ec0e084 docs: publish the CLI page (#5079)
The compaction guide links to `/tools/cli#install`, but `tools/cli.mdx`
was listed in `docs/web/.mintignore`, so the link had no target and
failed the broken-links check in the docs site build.

This removes the page from `.mintignore` and restores its nav entry and
the link from `basics/sql.mdx`, both dropped when the page was hidden in
#4859.
2026-11-17 13:58:48 -08:00
Bruno Ramirez 16af729792 feat(sdk)!: add typed SQL job handles for compaction and data prewarm (#5056)
Remote data prewarm used REST even though SQL supported filters and
concurrency, and both maintenance APIs returned after acceptance without
exposing a consistent typed completion handle. Compaction's legacy
statistics therefore could not describe the work committed by its
durable job. This PR adds job-returning compaction and data-prewarm
methods across Rust, Python sync/async and TypeScript, and moves
data-prewarm submission to SQL. Legacy methods retain
return-after-acceptance behavior; data prewarm now requires a compatible
SQL PREWARM server and Flight SQL connectivity. This consolidates #5037,
#5055 and #4906.

This was accomplished with the following changes:

- Added `compact_async()` / `compactAsync()` and `prewarm_data_async()`
/ `prewarmDataAsync()`, retaining the command receipt's durable job ID.
- Added `PrewarmDataOptions` for columns, a metadata-pruning filter and
concurrency; both operations inherit database, namespace and branch from
the table handle.
- Added filter/concurrency arguments to legacy Python `prewarm_data()`
and a TypeScript `prewarmData(options)` overload, preserving the
columns-array form and discarding the handle after acceptance.
- Added typed `CompactionResult` and `PrewarmDataResult` decoding,
including reopened jobs; missing result payloads fail explicitly and
omitted measurements remain unknown.
- Reused the shared Job lifecycle for status, refresh, progress
callbacks, cancellation and events; Python maintenance progress bars
display rewritten rows or completed executors.
- Added TypeScript `wait({ timeoutMs, onProgress })` and Rust
`wait_with_options(JobWaitOptions)`, complementing Python's existing
timeout argument without cancelling the durable job.
- Validated single unambiguous receipts, preserved compaction option
presence/default inheritance, and returned actionable unsupported-server
errors without dropping options or falling back to REST.
- Updated native bindings, API references and maintenance documentation
with job methods, result semantics, tuning and compatibility
requirements.

### Usage and behaviour

**New** = added here; **Enhanced** = existing support extended;
**Existing** = already on main. This table describes remote SDK
behavior; server-side SQL/CLI capabilities are prerequisites, not
additions made by this SDK PR.

| Surface | Capability | Compact | Data prewarm | Assessment |
| --- | --- | --- | --- | --- |
| Rust / Python sync+async / TypeScript | Submission transport |
Existing SQL OPTIMIZE | **New:** REST → SQL PREWARM | Both now submit
through SQL |
| All SDKs | Durable job-returning API | **New:** `compact_async` /
`compactAsync` | **New:** `prewarm_data_async` / `prewarmDataAsync` |
Same lifecycle model |
| All SDKs | Options and target scope | **New handle:** four existing
compaction overrides, with omitted fields inherited | **New options:**
columns/filter/concurrency | Namespace and branch preserved for both |
| Python / TypeScript | Legacy convenience calls | Existing optimize
acceptance behavior preserved | **Enhanced:** legacy methods accept
filter/concurrency and use SQL | Return after acceptance; no completion
wait |
| All SDKs | Typed successful result | **New:** committed rows,
file/fragment changes, partial commit and `more_work` | **New:** pinned
version, fragments and executor outcomes | Different measurements are
intentional |
| All SDKs | Status / refresh / progress | Existing Job APIs reused by
**new** maintenance handle | Existing Job APIs reused by **new**
maintenance handle | HTTP monitoring remains |
| Python / TypeScript | Progress presentation | **Enhanced:** rewrite
rows/groups | **Enhanced:** executor progress | Shared callbacks; Python
bars use operation counters |
| All SDKs | Bounded wait | Python existing; **new** TS/Rust timeout
controls | Same shared timeout support | Timeout stops this wait; job
continues |
| All SDKs | Reopen and await typed outcome | **New:** compaction result
decoding on reopened handle | **New:** prewarm result decoding on
reopened handle | Rust selects the typed result explicitly |
| All SDKs | Cancel / events | Existing shared APIs available on **new**
handle | Same | HTTP underneath; permissions unchanged |
| All SDKs | Typed preview helper | Unavailable | Unavailable | General
SQL where exposed; no helper added |
| Authorization | Submission | Existing table Ownership plus parent
Usage | SQL path uses Select plus parent Usage | Intentional difference
|
| All SDKs | Local / historical handles | New durable API rejects them |
New durable API rejects them | Remote current-branch jobs only |

```python
from datetime import timedelta

# Legacy convenience call: returns None after acceptance.
table.prewarm_data(["payload"], filter="id >= 1000", concurrency=4)

warm = table.prewarm_data_async(["payload"], filter="id >= 1000", concurrency=4)
warmed = warm.wait(timeout=timedelta(minutes=10), progress=print)
print(warmed.table_version, warmed.executors_completed)

compact = table.compact_async(compaction_options={"max_source_rows": 1000000})
committed = compact.wait(timeout=timedelta(minutes=10), progress=print)
print(committed.rows_succeeded, committed.fragments_removed, committed.more_work)

reopened_result = db.open_job(compact.id).wait()
```

```typescript
await table.prewarmData({ columns: ["payload"], filter: "id >= 1000", concurrency: 4 });
const job = await table.prewarmDataAsync({
  columns: ["payload"], filter: "id >= 1000", concurrency: 4,
});
const result = await job.wait({ timeoutMs: 600_000, onProgress: console.log });
```

```rust
use std::time::Duration;
use lancedb::job::JobWaitOptions;

let job = table.compact_async(Default::default()).await?;
let result = job.wait_with_options(
    JobWaitOptions::new().timeout(Duration::from_secs(600)),
).await?;
```

Python async tables await both submission and Job methods. Rust's legacy
`prewarm_data(columns)` keeps its columns-only signature; use
`PrewarmDataOptions` on the new job-returning method for
filtering/concurrency.

Wait deadlines cover pending status requests and polling delays.
Existing `wait()`, TypeScript `wait(callback)` and Rust
`wait_with_progress(callback)` remain supported.
Status/progress/refresh/cancel/events still use generic HTTP job APIs;
those endpoints and their read/event/cancel permissions must remain
available. Cancelling or timing out does not roll back committed work.

Compaction results describe committed rewrites and include deletion
files in file counts. Prewarm results describe work against a pinned
snapshot, with partial executors included in completed executors;
nonempty byte/range measurements remain unknown. Missing results require
compatible server/worker support rather than placeholder zero
statistics. Filtering uses conservative metadata pruning, not an exact
row-filter scan.

### Testing

Six checked-in live Python sync/async cases pass against matching
server/worker builds for compaction, job-returning prewarm and legacy
filtered submission. Ten additional live Node scenarios pass for
legacy/default/options forms, filters/concurrency, empty plans,
validation, persisted specifications and readback.

Targeted regressions pass: Python remote maintenance (80), shared jobs
(82), local prewarm rejection (4); Node remote (107) and prewarm API
cases (28), plus the previously exercised Rust remote regressions. Tests
cover receipt parsing, typed results, reopening, unknown measurements,
timeouts, and legacy calls returning None/undefined without polling.

Dependency pins are unchanged. Azure account-hint acknowledgment was
verified locally with filesystem storage; real Azure-backed storage
still needs deployment-specific validation.
2026-11-17 10:57:56 -08:00
Lance Release e3a0a29bdb Bump version: 0.42.0-beta.18 → 0.42.0-beta.19 v0.42.0-beta.19 2026-11-17 14:52:01 +00:00
Xuanwo 961a4518fd fix(remote): forward job statistics through refresh handles (#5071)
A Function refresh submitted through the LanceDB SDK returns a handle
wrapped for read-freshness tracking. lancedb/lancedb#5016 added
canonical `Job::stats()` on the server-job handle, but the refresh
wrapper did not forward `stats`. The returned handle therefore reported
`job statistics is only available for server-side jobs`, while
`db.open_job(<same id>).stats()` returned the server report.

Forward `stats` through the refresh wrapper and cover it at the public
refresh entry point. The regression submits with `refresh_column_async`,
then reads `stats` from that returned handle without reopening the job.
With the forwarding removed, the test fails with the same `NotSupported`
error; with the change, it passes.

Validation on `57b20fb11`: the targeted Rust test passed, `cargo fmt
--check` passed, and `cargo clippy -p lancedb --features remote --lib
--tests -- -D warnings` passed.

Part of ENT-3974.
2026-11-17 22:49:40 +08:00
Xuanwo 1670859327 fix(deps): ignore unmaintained chrono family advisories (#5073)
`cargo deny` fails on main because RUSTSEC-2026-0543 (`chrono`),
RUSTSEC-2026-0555 (`chrono-tz`) and RUSTSEC-2026-0542 (`humantime`) mark
the chrono family unmaintained. Add exceptions reviewed on 2026-11-17,
with the advisory links and the upstream migration constraint; none of
the three is a vulnerability and RustSec lists no patched version for
any of them (chrono recommends jiff/time).

Dependency paths (from `cargo tree -i` at version fb34b1c7 of main):

- `chrono` 0.4.45: arrow 59 / datafusion 55 and the lance stack, across
the workspace.
- `chrono-tz` 0.10.4: arrow-array → arrow → datafusion/lance.
- `humantime` 2.3.0: lance, object_store (through datafusion), and
xet-runtime.

Clearing the advisories requires the arrow/datafusion/lance ecosystem to
migrate off chrono; no upstream fix exists to consume. Also remove the
RUSTSEC-2026-0441 `pin-utils` ignore, which the current lockfile no
longer needs.

Validation on commit 04259a04 (cargo-deny 0.21.0, the version the CI
action installs):

- Before: `cargo deny check advisories` failed on the three
chrono-family advisories, and warned that the pin-utils ignore was not
encountered.
- After: `cargo deny check advisories bans licenses sources` passes all
four checks, matching the Rust CI deny job.
- `git diff --check` passes.
2026-11-17 20:58:43 +08:00
Jack Ye fb34b1c783 feat(functions): add row failure recovery APIs (#5048)
Function failures currently require callers to assemble row predicates
and manage retry/version/quarantine state themselves. Add exact
failed-row retry and Function upgrades through the Rust and Python
refresh APIs, plus Python helpers for grouped causes, failing input
rows, quarantine, and per-row producing-version metadata.

```python
errors = table.function_errors(column="sharpness")
errors.summary()
errors.rows(columns=["frame_index", "frame"])

table.retry_failed("sharpness", function_version="2").wait()
table.quarantine_failed("sharpness", after_attempts=3)
table.retry_failed("sharpness", include_quarantined=True).wait()
table.function_provenance("sharpness")
```

`upgrade_column(..., recompute="failed" | "all" | "none")` keeps the
column available while selecting the intended work. `history=True` reads
retained past errors. Capability checks reject these operations on
servers that cannot honor the workflow, before any refresh is submitted.

Includes synchronous/asynchronous API and older-server compatibility
coverage. Formatting applied; local builds and tests were not run.
2026-11-17 03:26:45 -08:00
Jack Ye ba4e3ef3f9 feat: expose Function worker stack inspection (#5043)
Adds `Job::stack(worker_id)` in Rust and `Job.stack(worker_id)` /
`AsyncJob.stack(worker_id)` in Python for server-side Function jobs. The
response preserves capture availability, timestamps, truncation, and
session details; unsupported local or query handles retain their
existing unsupported-operation behavior. Refresh wrappers forward the
request to their tracked server job.

```python
evidence = job.stack("worker-id")
for session in evidence["stacks"]:
    print(session["status"], session["stack"])
```

Requires a server implementing `/v1/jobs/stack` and system operate
privilege. The API propagates authorization and transport errors without
waiting for job completion. Existing progress snapshots already preserve
server warning fields.

Includes mocked request/response and synchronous/asynchronous Python
coverage. Local builds and tests were intentionally skipped as
requested.
2026-11-17 02:54:18 -08:00
Lance Release 57b20fb11d Bump version: 0.42.0-beta.17 → 0.42.0-beta.18 v0.42.0-beta.18 2026-11-17 08:56:56 +00:00
Xuanwo 1a21698906 chore: update lance dependency to v15.0.0-beta.25 (#5069)
Update the Rust workspace, Java core dependency and Python test
dependency to [Lance
v15.0.0-beta.25](https://github.com/lance-format/lance/releases/tag/v15.0.0-beta.25).
Mark computed-column refresh replacements as data changes using Lance's
new explicit flag so refreshed values retain the existing index
invalidation and row-update behavior.

Rust API compatibility: the re-exported `CompactionOptions` adds
`max_data_files_per_fragment` and `scope`. Callers using exhaustive
struct literals must include the new fields or use
`..Default::default()`.

Configure macOS Rust tests with an explicit Python 3.13 interpreter and
runner/Python-specific caches so doctests do not link against an absent
Python framework.
2026-11-17 16:55:26 +08:00
Jack Ye e61252f4dc feat(python): capture Arrow and structured Function globals (#5044)
Function source packaging inlined only scalar literals and tuples of
them. A module-level PyArrow type shared by `output_schema=` and the
Function body, a label map, or a small NumPy weight vector failed at
decoration with an "unsupported global value" error and had to be
redefined inside the body. These globals are now captured:

```python
import numpy as np
import pyarrow as pa
from lancedb import function

OUT_TYPE = pa.struct([pa.field("label", pa.string()), pa.field("score", pa.int32())])
LABELS = {"pick": 0, "place": 1}
WEIGHTS = np.array([0.25, 0.75])


@function(
    input_schema=pa.schema([pa.field("x", pa.int64(), nullable=False)]),
    output_schema=pa.field("out", OUT_TYPE, nullable=False),
    pip=["numpy"],
)
def judge(x: pa.Array) -> pa.Array:
    score = int(WEIGHTS.sum() * 10)
    rows = [{"label": "pick", "score": LABELS["pick"] + score}] * len(x)
    return pa.array(rows, type=OUT_TYPE)
```

| Captured global | Rebuilt in the artifact as |
| --- | --- |
| `None`, `bool`, `int`, `str`, `bytes`, finite `float` | a literal
(unchanged) |
| tuple, list, dict, set, frozenset of supported values | a literal;
dicts keep insertion order, set elements are sorted by their source |
| PyArrow `DataType`, `Field`, `Schema` | `pa.ipc.read_schema` over the
value's IPC schema bytes, which keeps nullability, metadata, and nested
fields |
| NumPy array or scalar of a bool, integer, float16, float32, or float64
dtype | `np.array(<elements>, dtype=<dtype.str>)` or
`np.dtype(<dtype.str>).type(<item>)` |

- Each value is a copy taken when the decorator runs and rebuilt per
worker process, so values that share an object become separate copies.
Packaging does not depend on hash randomization.
- Each value is limited to 1 MiB of source and 32 levels of nesting.
Cycles and Python-defined Arrow extension types are rejected. The size
limit also applies to the existing literal captures.
- Unsupported values keep the error that names the global, its type, the
supported captures, and the remedy.
- `pyarrow` and `numpy` are imported under private aliases ahead of the
captured globals. The builtins used for empty sets and frozensets are
claimed, so a module that rebinds them fails packaging instead of
silently shadowing them.


Empty NumPy arrays are encoded directly from dtype and shape, so even
`(500_000, 0)` stays compact without expanding nested Python lists.
2026-11-17 00:10:59 -08:00
Xuanwo ff9dc7a2be feat(function): expose descriptor refresh plan in terminal result (#5064)
## Summary

Add the terminal plan shape for Function-backed refresh results:

- `FunctionRefreshPlan` describes the descriptor-derived size tiers,
selected worker classes, batch bytes, row counts, and batch counts.
- `FunctionRefreshTier` describes one byte-bounded tier.
- `RefreshColumnResult.plan` carries the plan in the public terminal
result, optional and omitted when absent.

This is the SDK prerequisite for descriptor-first Function refresh
planning. It only exposes the shared result shape; it does not compute
the plan or change refresh execution.

## Compatibility

Existing terminal payloads and callers are unchanged: the new field is
`#[serde(default, skip_serializing_if = "Option::is_none")]`, so absent
plans stay absent and old payloads decode to `None`.

## Validation

- `git diff --check`
- Unit tests cover absent-plan serialization and plan round-trip.
- Repository CI on this PR.
2026-11-17 13:48:13 +08:00
Xuanwo c278f90cc1 feat: expose shared Arrow type golden behind test-fixtures (#5065)
Downstream compatibility tests currently load the Function Arrow type
golden from a LanceDB source checkout. Add a default-off `test-fixtures`
feature that exposes
`lancedb::test_fixtures::FUNCTION_ARROW_TYPES_JSON`, so consumers can
enable it on their existing LanceDB dev-dependency and use the golden
from the same revision.

The golden stays in its existing location with unchanged bytes.
LanceDB's Rust test reads the exported constant; Python tests and
release/versioning workflows remain unchanged.
2026-11-17 13:31:32 +08:00
Lance Release bf4d6c8083 Bump version: 0.42.0-beta.16 → 0.42.0-beta.17 v0.42.0-beta.17 2026-11-16 19:56:16 +00:00
LanceDB Robot 161318466a chore: update lance dependency to v15.0.0-beta.23 (#5063)
Updates the Rust workspace and Java Lance dependencies to
[v15.0.0-beta.23](https://github.com/lance-format/lance/releases/tag/v15.0.0-beta.23),
with the matching Python `pylance==15.0.0b23` test pin and refreshed
Cargo and uv lockfiles. No source compatibility fixes were needed.

Validation: workspace Clippy with all features and warnings denied, Rust
formatting, all 35 CI-script tests, Python dependency guards, Python
formatting/lint, and uv lock consistency checks passed; the root-wide
Ruff check has 59 pre-existing diagnostics, confirmed unchanged from
HEAD.
2026-11-17 03:50:28 +08:00
Xuanwo 3b7c4dcf66 fix: allow matched merge updates to Function inputs (#5062)
Matched merge-insert updates rejected every non-key source column that a
Function binding reads, while update already accepts input changes and
the merge freshness path records their changed signatures. Use the same
`ensure_not_written` guard for the matched source columns: inputs pass,
computed outputs and assignment columns stay rejected before any write,
and insert-only or unrelated-column merges keep their behavior.

Regressions confirm a matched input update retains prior outputs,
dirties only the affected rows, keeps an independent binding fresh, and
rejects mixed input/output sources without committing.

Tested on `2ab103d7` + this change: `cargo test -p lancedb --lib` 1083
passed, 82 ignored.

Refs ENT-3515
2026-11-16 20:23:25 +08:00
Lance Release d475005592 Bump version: 0.42.0-beta.15 → 0.42.0-beta.16 v0.42.0-beta.16 2026-11-16 11:40:59 +00:00
Xuanwo c7d972fe48 fix(python): explain blob descriptor copy guidance (#5060)
The descriptor-copy error only named the missing `data`/`uri` child. It
now says that this shape is an SDK blob descriptor rather than payload
bytes, and points to `blob_mode="bytes"` for supported materialization,
`blob_mode="descriptions"` for inspection, and the row-id plus
`fetch_blobs`/`fetch_blob_files` copy path while the source stays
unchanged.

This reuses the merged guidance from #4940 and the
direct-materialization contract from #4973. Ray integration remains out
of scope for ENT-3556.

Refs ENT-3556

Test: `python/tests/test_blob.py` (210 passed, 39 skipped), including a
regression that writes default lazy descriptor rows into a blob-schema
table, checks the guidance, and confirms no target is created.
`python/tests/test_util.py -k blob` (12 passed, 2 skipped).
2026-11-16 18:56:39 +08:00
Lance Release 2ab103d775 Bump version: 0.42.0-beta.14 → 0.42.0-beta.15 v0.42.0-beta.15 2026-11-15 14:06:09 +00:00
LanceDB RobotandJack Ye 613653a7db chore: update lance dependency to v15.0.0-beta.22 (#5057)
Update Rust and Java Lance dependencies to
[v15.0.0-beta.22](https://github.com/lance-format/lance/releases/tag/v15.0.0-beta.22),
synchronize the Python test pin to `pylance==15.0.0b22`, and refresh the
lockfiles with all published platform wheels.

Preserve Function freshness only when an UPDATE changes rows, so
beta.22's no-match updates cannot mark previously invalidated outputs as
fresh. Extend the existing regression cases to cover no-match updates
after input and output changes, including unchanged table versions.

Rust formatting passed. CI validates the compatibility fix; no local
builds or tests were run.

---------

Co-authored-by: Jack Ye <yezhaoqin@gmail.com>
2026-11-15 06:04:30 -08:00
Jack Ye 3aed07c396 fix(python): show Function registration progress and image details (#5040)
Report registration lifecycle and client elapsed time through existing job handles, and provide concise image inspection. Preserve quiet wait behavior, environment-lock forwarding, failure diagnostics and timeout recovery.
2026-11-15 02:05:06 -08:00
Jack Ye 1feec84d2b feat(python): expose FTS operators and match counts (#5042)
String full-text searches now accept `operator="AND"` or
`operator="OR"`, preserving the existing OR default. Sync and async FTS
builders expose `count_rows()` to count every match satisfying the
filter, independently of pagination, projection, ordering, and
reranking. Counting streams matching scores without reading document
columns; it can scan all matches.

```python
query = table.search("gripper closed", query_type="fts", operator="AND")
query = query.where("active = true")
matching_rows = query.count_rows()
page = query.limit(20).to_list()

query = await async_table.search("gripper closed", query_type="fts", operator="AND")
matching_rows = await query.where("active = true").count_rows()
```

Phrase searches keep the existing index default and now explain how to
rebuild an index with `FTS(with_position=True)`. AND requests retain
their operator through namespace pushdown and fail explicitly on older
remote servers that cannot represent it. Regression coverage includes
indexed and unindexed queries, filtered counts above the default limit,
pagination preservation, remote serialization, and phrase indexes with
and without positions.
2026-11-15 01:21:28 -08:00