--source include/have_ndb.inc --disable_warnings DROP TABLE IF EXISTS t1; --enable_warnings # The UNIQUE INDEX is needed for the crash CREATE TABLE t1 (f_int1 INTEGER,f_int2 INTEGER, f_char1 CHAR(10),f_char2 CHAR(10),f_charbig VARCHAR(1000) ,UNIQUE INDEX (f_int2)) ENGINE=NDB PARTITION BY HASH(f_int1) PARTITIONS 2; # crash SELECT MIN(f_int2) FROM t1;