MCPcopy Create free account
hub / github.com/apache/paimon-rust / execute_cow_update

Function execute_cow_update

crates/integrations/datafusion/src/update.rs:167–176  ·  view source on GitHub ↗

Execute UPDATE on an append-only table with retry on delete conflict.

(
    ctx: &SQLContext,
    update: &Update,
    table: &Table,
)

Source from the content-addressed store, hash-verified

165
166/// Execute UPDATE on an append-only table with retry on delete conflict.
167async fn execute_cow_update(
168 ctx: &SQLContext,
169 update: &Update,
170 table: &Table,
171) -> DFResult<DataFrame> {
172 retry_on_conflict("CoW UPDATE", is_delete_conflict, || {
173 execute_cow_update_once(ctx, update, table)
174 })
175 .await
176}
177
178/// Single attempt of CoW UPDATE execution.
179async fn execute_cow_update_once(

Callers 1

execute_updateFunction · 0.85

Calls 2

retry_on_conflictFunction · 0.85
execute_cow_update_onceFunction · 0.85

Tested by

no test coverage detected