Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhyass committed May 24, 2024
1 parent 68fe1b0 commit 7dc64d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ async fn purge(
let table = catalog
.get_table(&ctx.get_tenant(), &plan.database, &plan.table)
.await?;
// check mutability
table.check_mutable()?;

let keep_latest = true;
let res = table
Expand Down
6 changes: 6 additions & 0 deletions src/query/service/src/sessions/query_ctx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,9 @@ impl QueryContext {
let tbl = catalog
.get_table(&self.get_tenant(), db_name, tbl_name)
.await?;
if tbl.engine() != "FUSE" {
return Ok(None);
}

// Add table lock.
let table_lock = LockManager::create_table_lock(tbl.get_table_info().clone())?;
Expand All @@ -356,6 +359,9 @@ impl QueryContext {
let tbl = catalog
.get_table(&self.get_tenant(), db_name, tbl_name)
.await?;
if tbl.engine() != "FUSE" {
return Ok(None);
}

// Add table lock.
let table_lock = LockManager::create_table_lock(tbl.get_table_info().clone())?;
Expand Down

0 comments on commit 7dc64d8

Please sign in to comment.