mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-26 20:44:00 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user