Files
lancedb/nodejs/lancedb
0abc7d48be fix(node): preserve incoming Arrow schema on overwrite (#5276)
## Summary

- Use the incoming Arrow schema and metadata for Arrow overwrite input,
even if the previous table had automatic embeddings.
- Preserve current schema conversion for append and row-object
overwrite.

- Resolve the incoming schema's embedding provider only when its vector
column needs generation. Compute missing vectors across every Arrow
batch.

## Validation

- Native regression creates an embedding table, verifies that a row
overwrite computes its vector, then replaces the table with a different
Arrow schema and checks its metadata and stored row. The test fails on
main when the SDK passes a null value to the previous embedding
function.
- Embedding Jest suite with the 0.42.0-beta.38 native binding: 15
passed, 1 skipped (requires an OpenAI key). TypeScript compilation with
`--noEmit` and Biome checks passed.

- Reopened two-batch imports preserve both precomputed vectors with no
provider registered and generate vectors for both rows when inputs are
missing. Both regressions failed before the follow-up. Across
`embedding.test.ts` and `arrow.test.ts`, 511 passed and one OpenAI
integration was skipped. TypeScript and Biome passed.

Fixes https://github.com/lancedb/lancedb/issues/5275

---------

Co-authored-by: Divyam Talwar <DivyamTalwar@users.noreply.github.com>
Co-authored-by: Divyam Talwar <194859478+DivyamTalwar@users.noreply.github.com>
2026-12-02 07:06:30 +08:00
..
2026-09-23 15:09:40 +08:00