fix(nodejs): terminate delta readers on schema errors

Route native schema export and Arrow IPC decode failures through the same terminal cleanup as polling, without reopening the reader or repeating release. Add the Table.delta stream example and focused lifecycle tests.
This commit is contained in:
Xuanwo
2026-11-21 07:11:05 +00:00
parent 156bc8ea1b
commit 9358ed02c6
3 changed files with 84 additions and 10 deletions
+12
View File
@@ -585,6 +585,18 @@ LanceDB Enterprise tables reject this operation.
`Promise`<[`TableDelta`](TableDelta.md)>
#### Example
```ts
const delta = await table.delta("baseline");
const reader = delta.insertedRows();
console.log((await reader.schema()).fields.map((field) => field.name));
for await (const batch of reader) {
console.log(batch.getChild("id")?.toJSON());
}
console.log(await delta.listTransactions());
```
***
### disableRTE()