Debian Codegraph @

mysql-test/suite/ndb/t/ndb_hashmap.test

raw
1 -- source include/have_ndb.inc
2
3 # use data nodes DefaultHashmapSize
4 create table t1 (x int primary key) engine=ndbcluster;
5
6 # Expect to not find any 'HASHMAP...-7'
7 select fq_name from ndbinfo.dict_obj_info
8 where type = 24 /* HashMap */ and fq_name like '%HASHMAP%-7%';
9
10 # use api nodes DefaultHashmapSize
11 alter table t1 partition by key() partitions 7;
12
13 # Check that a 'HASHMAP...-7' for 'partitions 7' was created
14 select fq_name from ndbinfo.dict_obj_info
15 where type = 24 /* HashMap */ and fq_name like '%HASHMAP%-7%';
16
17 drop table t1;