feat(functions): add row failure recovery APIs (#5048)

Function failures currently require callers to assemble row predicates
and manage retry/version/quarantine state themselves. Add exact
failed-row retry and Function upgrades through the Rust and Python
refresh APIs, plus Python helpers for grouped causes, failing input
rows, quarantine, and per-row producing-version metadata.

```python
errors = table.function_errors(column="sharpness")
errors.summary()
errors.rows(columns=["frame_index", "frame"])

table.retry_failed("sharpness", function_version="2").wait()
table.quarantine_failed("sharpness", after_attempts=3)
table.retry_failed("sharpness", include_quarantined=True).wait()
table.function_provenance("sharpness")
```

`upgrade_column(..., recompute="failed" | "all" | "none")` keeps the
column available while selecting the intended work. `history=True` reads
retained past errors. Capability checks reject these operations on
servers that cannot honor the workflow, before any refresh is submitted.

Includes synchronous/asynchronous API and older-server compatibility
coverage. Formatting applied; local builds and tests were not run.
This commit is contained in:
Jack Ye
2026-11-17 03:26:45 -08:00
committed by GitHub
parent ba4e3ef3f9
commit fb34b1c783
14 changed files with 1540 additions and 27 deletions
+1
View File
@@ -581,6 +581,7 @@ impl Table {
})
.transpose()?;
let request = lancedb::function::FunctionErrorsRequest {
history: false,
job_id: options.job_id,
column: options.column,
limit,