Skip to content

Commit 8a4cdce

Browse files
committed
fix test
1 parent 8784acc commit 8a4cdce

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/query/storages/fuse/src/operations/recluster.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ impl FuseTable {
7171
return Ok(None);
7272
};
7373

74+
if snapshot.summary.block_count == 0 {
75+
return Ok(None);
76+
}
77+
7478
let mutator = Arc::new(ReclusterMutator::try_create(
7579
self,
7680
ctx.clone(),

tests/sqllogictests/suites/base/09_fuse_engine/09_0008_fuse_optimize_table.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ select segment_count, block_count from fuse_snapshot('db_09_0008', 't9') limit 2
510510
2 2
511511

512512
query I
513-
select a from t9
513+
select a from t9 order by a
514514
----
515515
1
516516
2

0 commit comments

Comments
 (0)