8 lines
320 B
Plaintext
8 lines
320 B
Plaintext
# TestShardRowIDBitsStep
|
|
drop table if exists shard_t;
|
|
create table shard_t (a int) shard_row_id_bits = 15;
|
|
set @@tidb_shard_allocate_step=3;
|
|
insert into shard_t values (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11);
|
|
select count(distinct(_tidb_rowid>>48)) from shard_t;
|
|
set @@tidb_shard_allocate_step=default;
|