Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhyass committed Oct 18, 2023
1 parent 0ec291d commit 77f428c
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions tests/sqllogictests/suites/mode/cluster/distributed_recluster.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
statement ok
drop table if exists t_recluster

statement ok
create table t_recluster (a int not null) cluster by(a) row_per_block=3

statement ok
set recluster_block_size = 30

statement ok
insert into t_recluster select 10-number from numbers(20)

statement ok
insert into t_recluster select 10-number from numbers(20)

statement ok
insert into t_recluster select 10-number from numbers(20)

statement ok
set enable_distributed_recluster = 1

statement ok
alter table t_recluster recluster

# query I
# select count()>1 from system.metrics where metric='fuse_recluster_block_nums_to_read_total'
# ----
# 1

statement ok
set enable_distributed_recluster = 0

statement ok
drop table if exists t_recluster

0 comments on commit 77f428c

Please sign in to comment.