Execute DELETE on an append-only table with retry on delete conflict.
(
ctx: &SQLContext,
delete: &Delete,
table: &Table,
table_ref: &str,
)
| 75 | |
| 76 | /// Execute DELETE on an append-only table with retry on delete conflict. |
| 77 | async 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. |
| 90 | async fn execute_cow_delete_once( |
no test coverage detected