Files
lancedb/docs/src/js/interfaces/FunctionErrorRecord.md
T
Xuanwo 4d9fd358f8 feat(nodejs): expose Function failure recovery APIs (#5209)
TypeScript callers can now inspect and recover Function row failures
through the native workflow. `functionErrors()` groups returned failures
and can show retained attempt history. `functionErrorRows()` looks up
current failed inputs using row IDs and physical row addresses
represented as `bigint`. Older deployments can continue to use the
existing error listing.

`retryFailed()` selects the exact failed rows on the server, with
optional error type and job filters. `upgradeColumn()` binds an existing
immutable Function version and can recompute failed rows, all eligible
rows, or no rows. Callers can quarantine and release failures,
explicitly include quarantined rows in a retry, and use
`functionProvenance()` to see which Function version produced a recorded
value.

The native operations reuse the existing Rust workflow v1 capability
checks. The Function failures guide includes TypeScript examples for
inspecting, retrying, upgrading, and quarantining failures.
2026-11-25 23:14:04 +08:00

1.8 KiB

@lancedb/lancedb • Docs


@lancedb/lancedb / FunctionErrorRecord

Interface: FunctionErrorRecord

One row a Function refresh skipped, as the server recorded it.

Properties

attempts?

optional attempts: number;

Number of failed invocation attempts, when recorded.


column

column: string;

createdAtMillis

createdAtMillis: number;

errorMessage

errorMessage: string;

errorType

errorType: string;

firstSeenAtMillis?

optional firstSeenAtMillis: number;

First failure time for this row, when recorded.


fragmentId

fragmentId: number;

function

function: string;

functionVersion

functionVersion: string;

input?

optional input: unknown;

Source identities for a materialized-view Function invocation.


jobId

jobId: string;

lastSeenAtMillis?

optional lastSeenAtMillis: number;

Latest failure time for this row, when recorded.


quarantined?

optional quarantined: boolean;

Whether the failure is quarantined. Absent on older listings.


rowAddress?

optional rowAddress: bigint;

Physical row address at the recorded version. A rewrite can change it.


rowId?

optional rowId: bigint;

Stable row identity when recorded. It survives compaction and rewrite.


rowOffset?

optional rowOffset: number;

The row's offset within the fragment; absent when the fragment's detail was capped.


tableVersion

tableVersion: number;

traceback?

optional traceback: string;

User-code traceback, possibly truncated by the server.