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

Method truncate_table

crates/paimon/src/table/table_commit.rs:282–289  ·  view source on GitHub ↗

Truncate the entire table (OVERWRITE with no filter, only deletes).

(&self)

Source from the content-addressed store, hash-verified

280
281 /// Truncate the entire table (OVERWRITE with no filter, only deletes).
282 pub async fn truncate_table(&self) -> Result<()> {
283 self.try_commit(CommitEntriesPlan::Overwrite {
284 partition_filter: None,
285 new_entries: vec![],
286 new_index_entries: vec![],
287 })
288 .await
289 }
290
291 /// Try to commit with retries.
292 async fn try_commit(&self, plan: CommitEntriesPlan) -> Result<()> {

Callers 2

handle_truncate_tableMethod · 0.80
test_truncate_tableFunction · 0.80

Calls 1

try_commitMethod · 0.80

Tested by 1

test_truncate_tableFunction · 0.64