forked from percona/percona-server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
issue495.test
33 lines (29 loc) · 791 Bytes
/
issue495.test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--source include/have_partition.inc
--disable_warnings
drop table if exists t;
--enable_warnings
create table t (
a int,
b int,
c varchar(12249) collate latin1_bin,
d datetime,
e int,
f int,
g blob,
h int,
i int,
key (b,e),
key (h,b)
) engine=rocksdb
partition by linear hash (i) partitions 8 ;
insert into t values (1,1,'a',now(),1,1,'a',1,1);
insert into t values (1,1,'a',now(),1,1,'a',1,1);
insert into t values (1,1,'a',now(),1,1,'a',1,1);
insert into t values (1,1,'a',now(),1,1,'a',1,1);
insert into t values (1,1,'a',now(),1,1,'a',1,1);
insert into t values (1,1,'a',now(),1,1,'a',1,1);
insert into t values (1,1,'a',now(),1,1,'a',1,1);
insert into t values (1,1,'a',now(),1,1,'a',1,1);
select i from t group by h;
select i from t group by h;
drop table t;