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

Function execute_cow_delete

crates/integrations/datafusion/src/delete.rs:77–87  ·  view source on GitHub ↗

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

(
    ctx: &SQLContext,
    delete: &Delete,
    table: &Table,
    table_ref: &str,
)

Source from the content-addressed store, hash-verified

75
76/// Execute DELETE on an append-only table with retry on delete conflict.
77async fn execute_cow_delete(
78 ctx: &SQLContext,
79 delete: &Delete,
80 table: &Table,
81 table_ref: &str,
82) -> DFResult<DataFrame> {
83 retry_on_conflict("CoW DELETE", is_delete_conflict, || {
84 execute_cow_delete_once(ctx, delete, table, table_ref)
85 })
86 .await
87}
88
89/// Single attempt of CoW DELETE execution.
90async fn execute_cow_delete_once(

Callers 1

execute_deleteFunction · 0.85

Calls 2

retry_on_conflictFunction · 0.85
execute_cow_delete_onceFunction · 0.85

Tested by

no test coverage detected