Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyFan2002 committed Dec 2, 2024
1 parent 286fb36 commit ba3d381
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/query/storages/fuse/src/operations/truncate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ impl FuseTable {
pipeline: &mut Pipeline,
mode: TruncateMode,
) -> Result<()> {
self.build_truncate_pipeline(ctx, pipeline, mode)
if self.read_table_snapshot().await?.is_some() {
self.build_truncate_pipeline(ctx, pipeline, mode)
} else {
Ok(())
}
}

#[inline]
Expand Down

0 comments on commit ba3d381

Please sign in to comment.