mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-26 20:44:00 +00:00
fix!: preserve job attempt lineage, retries, and lifecycle states
BREAKING CHANGE: JobDescription, JobEventsRequest, FunctionErrorsRequest, and FunctionErrors gain optional Rust metadata/cursor fields. Existing struct literals must initialize them; use None when unavailable. Preserve typed attempt state, pinned retry lineage, result decoders and freshness fences, and retained diagnostic paging across SDKs. Keep Python job data access method-only.
This commit is contained in:
@@ -661,6 +661,7 @@ impl Table {
|
||||
job_id: options.job_id,
|
||||
column: options.column,
|
||||
limit,
|
||||
page_token: options.page_token,
|
||||
};
|
||||
let errors = self
|
||||
.inner_ref()?
|
||||
@@ -1845,6 +1846,8 @@ pub struct FunctionErrorsOptions {
|
||||
pub column: Option<String>,
|
||||
/// At most this many records (server default 10000, cap 100000).
|
||||
pub limit: Option<i64>,
|
||||
/// Empty starts retained history, including repaired rows, for an exact jobId; otherwise continue that page.
|
||||
pub page_token: Option<String>,
|
||||
}
|
||||
|
||||
/// Aggregate worker resources for one Enterprise Function refresh.
|
||||
@@ -2204,6 +2207,8 @@ pub struct FunctionErrors {
|
||||
pub fragments: Vec<FunctionErrorFragment>,
|
||||
/// Whether the listing stopped at its limit.
|
||||
pub truncated: bool,
|
||||
/// Continue the same job/filter. Absent for complete pages and older servers.
|
||||
pub page_token: Option<String>,
|
||||
}
|
||||
|
||||
/// One exact immutable Function revision attached to a table output.
|
||||
@@ -2322,6 +2327,7 @@ impl From<lancedb::function::FunctionErrors> for FunctionErrors {
|
||||
records: errors.records.into_iter().map(Into::into).collect(),
|
||||
fragments: errors.fragments.into_iter().map(Into::into).collect(),
|
||||
truncated: errors.truncated,
|
||||
page_token: errors.page_token,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user