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.
3.1 KiB
@lancedb/lancedb • Docs
@lancedb/lancedb / RefreshColumnOptions
Interface: RefreshColumnOptions
Options for Table.refreshColumn and Table.refreshColumnAsync. Every
option is LanceDB Enterprise only; a LanceDB Embedded refresh ignores
batchSize, gpuClass and totalGpuCount and rejects the rest.
Properties
batchSize?
optional batchSize: number;
Maximum rows per Function call; must be greater than zero.
errorPolicy?
optional errorPolicy: string;
"fail" stops on a row error; "skip" records it and continues,
subject to the failure limits. The default is server-dependent.
gpuClass?
optional gpuClass: string;
GPU class for Function workers.
gpuCount?
optional gpuCount: number;
Positive GPU count allocated to each Function worker.
initTimeoutSeconds?
optional initTimeoutSeconds: number;
Deadline for Function initialization, in seconds.
maxConcurrency?
optional maxConcurrency: number;
Override the registered Function's maximum concurrent user-code calls for this logical execution.
maxExecutorProcessesPerWorker?
optional maxExecutorProcessesPerWorker: number;
Cap on executor processes per Function worker.
maxFailedFraction?
optional maxFailedFraction: number;
Under a skip policy, fail the job once more than this share of rows (0 to 1) has failed.
maxFailedRows?
optional maxFailedRows: number;
Under a skip policy, fail the job once more than this many rows have failed.
numWorkers?
optional numWorkers: number;
Worker count for an expression column; Function columns reject it.
planningWorkers?
optional planningWorkers: FunctionRefreshPlanningConfig;
Resources and sizing for the refresh planning fleet.
publicationIntervalRows?
optional publicationIntervalRows: number;
Row-count threshold for publishing completed Function split ranges. Must be a positive safe integer. Omit for whole-fragment publication. Actual publications can be larger; remaining rows publish at completion. Requires LanceDB Enterprise with non-Blob Function outputs.
retryPolicy?
optional retryPolicy: FunctionRetryPolicy;
Override retries of failed user-code calls for this refresh.
rowTimeoutSeconds?
optional rowTimeoutSeconds: number;
Deadline for one Function call, in seconds.
supervisorResources?
optional supervisorResources: FunctionRefreshPodResources;
CPU, memory, and ephemeral-storage limits for the refresh supervisor.
totalCpuMillis?
optional totalCpuMillis: number;
Override the total CPU budget in millicores for this refresh.
totalGpuCount?
optional totalGpuCount: number;
Nonnegative total GPU budget for Function workers.
totalMemoryBytes?
optional totalMemoryBytes: number;
Override the total memory budget in bytes for this refresh.
where?
optional where: string;
Only refresh the rows matching this SQL filter.