Commit f693203e authored by Mattias Jonsson's avatar Mattias Jonsson

Bug#14521864: MYSQL 5.1 TO 5.5 BUGS PARTITIONING

Due to an internal change in the server code in between 5.1 and 5.5
(wl#2649) the hash function used in KEY partitioning changed
for numeric and date/time columns (from binary hash calculation
to character based hash calculation).

Also enum/set changed from latin1 ci based hash calculation to
binary hash between 5.1 and 5.5. (bug#11759782).

These changes makes KEY [sub]partitioned tables on any of
the affected column types incompatible with 5.5 and above,
since the calculation of partition id differs.

Also since InnoDB asserts that a deleted row was previously
read (positioned), the server asserts on delete of a row that
is in the wrong partition.

The solution for this situation is:

1) The partitioning engine will check that delete/update will go to the
partition the row was read from and give an error otherwise, consisting
of the rows partitioning fields. This will avoid asserts in InnoDB and
also alert the user that there is a misplaced row. A detailed error
message will be given, including an entry to the error log consisting
of both table name, partition and row content (PK if exists, otherwise
all partitioning columns).


2) A new optional syntax for KEY () partitioning in 5.5 is allowed:
[SUB]PARTITION BY KEY [ALGORITHM = N] (list_of_cols)
Where N = 1 uses the same hashing as 5.1 (Numeric/date/time fields uses
binary hashing, ENUM/SET uses charset hashing) N = 2 uses the same
hashing as 5.5 (Numeric/date/time fields uses charset hashing,
ENUM/SET uses binary hashing). If not set on CREATE/ALTER it will
default to 2.

This new syntax should probably be ignored by NDB.


3) Since there is a demand for avoiding scanning through the full
table, during upgrade the ALTER TABLE t PARTITION BY ... command is
considered a no-op (only .frm change) if everything except ALGORITHM
is the same and ALGORITHM was not set before, which allows manually
upgrading such table by something like:
ALTER TABLE t PARTITION BY KEY ALGORITHM = 1 () or
ALTER TABLE t PARTITION BY KEY ALGORITHM = 2 ()


4) Enhanced partitioning with CHECK/REPAIR to also check for/repair
misplaced rows. (Also works for ALTER TABLE t CHECK/REPAIR PARTITION)

CHECK FOR UPGRADE:
If the .frm version is < 5.5.3
and uses KEY [sub]partitioning
and an affected column type
then it will fail with an message:
KEY () partitioning changed, please run:
ALTER TABLE `test`.`t1`  PARTITION BY KEY ALGORITHM = 1 (a)
PARTITIONS 12
(i.e. current partitioning clause, with the addition of
ALGORITHM = 1)

CHECK without FOR UPGRADE:
if MEDIUM (default) or EXTENDED options are given:
Scan all rows and verify that it is in the correct partition.
Fail for the first misplaced row.

REPAIR:
if default or EXTENDED (i.e. not QUICK/USE_FRM):
Scan all rows and every misplaced row is moved into its correct
partitions.


5) Updated mysqlcheck (called by mysql_upgrade) to handle the
new output from CHECK FOR UPGRADE, to run the ALTER statement
instead of running REPAIR.

This will allow mysql_upgrade (or CHECK TABLE t FOR UPGRADE) to upgrade
a KEY [sub]partitioned table that has any affected field type
and a .frm version < 5.5.3 to ALGORITHM = 1 without rebuild.


Also notice that if the .frm has a version of >= 5.5.3 and ALGORITHM
is not set, it is not possible to know if it consists of rows from
5.1 or 5.5! In these cases I suggest that the user does:
(optional)
LOCK TABLE t WRITE;
SHOW CREATE TABLE t;
(verify that it has no ALGORITHM = N, and to be safe, I would suggest
backing up the .frm file, to be used if one need to change to another
ALGORITHM = N, without needing to rebuild/repair)
ALTER TABLE t <old partitioning clause, but with ALGORITHM = N>;
which should set the ALGORITHM to N (if the table has rows from
5.1 I would suggest N = 1, otherwise N = 2)
CHECK TABLE t;
(here one could use the backed up .frm instead and change to a new N
and run CHECK again and see if it passes)
and if there are misplaced rows:
REPAIR TABLE t;
(optional)
UNLOCK TABLES;
parents d37076cd 08b0d549
/* /*
Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved. Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define CHECK_VERSION "2.5.0" #define CHECK_VERSION "2.5.1"
#include "client_priv.h" #include "client_priv.h"
#include <m_ctype.h> #include <m_ctype.h>
...@@ -29,6 +29,10 @@ ...@@ -29,6 +29,10 @@
#define EX_USAGE 1 #define EX_USAGE 1
#define EX_MYSQLERR 2 #define EX_MYSQLERR 2
/* ALTER instead of repair. */
#define MAX_ALTER_STR_SIZE 128 * 1024
#define KEY_PARTITIONING_CHANGED_STR "KEY () partitioning changed"
static MYSQL mysql_connection, *sock = 0; static MYSQL mysql_connection, *sock = 0;
static my_bool opt_alldbs = 0, opt_check_only_changed = 0, opt_extended = 0, static my_bool opt_alldbs = 0, opt_check_only_changed = 0, opt_extended = 0,
opt_compress = 0, opt_databases = 0, opt_fast = 0, opt_compress = 0, opt_databases = 0, opt_fast = 0,
...@@ -44,7 +48,7 @@ static char *opt_password = 0, *current_user = 0, ...@@ -44,7 +48,7 @@ static char *opt_password = 0, *current_user = 0,
*default_charset= 0, *current_host= 0; *default_charset= 0, *current_host= 0;
static char *opt_plugin_dir= 0, *opt_default_auth= 0; static char *opt_plugin_dir= 0, *opt_default_auth= 0;
static int first_error = 0; static int first_error = 0;
DYNAMIC_ARRAY tables4repair, tables4rebuild; DYNAMIC_ARRAY tables4repair, tables4rebuild, alter_table_cmds;
#ifdef HAVE_SMEM #ifdef HAVE_SMEM
static char *shared_memory_base_name=0; static char *shared_memory_base_name=0;
#endif #endif
...@@ -591,6 +595,17 @@ static int process_all_tables_in_db(char *database) ...@@ -591,6 +595,17 @@ static int process_all_tables_in_db(char *database)
} /* process_all_tables_in_db */ } /* process_all_tables_in_db */
static int run_query(const char *query)
{
if (mysql_query(sock, query))
{
fprintf(stderr, "Failed to %s\n", query);
fprintf(stderr, "Error: %s\n", mysql_error(sock));
return 1;
}
return 0;
}
static int fix_table_storage_name(const char *name) static int fix_table_storage_name(const char *name)
{ {
...@@ -599,12 +614,7 @@ static int fix_table_storage_name(const char *name) ...@@ -599,12 +614,7 @@ static int fix_table_storage_name(const char *name)
if (strncmp(name, "#mysql50#", 9)) if (strncmp(name, "#mysql50#", 9))
return 1; return 1;
sprintf(qbuf, "RENAME TABLE `%s` TO `%s`", name, name + 9); sprintf(qbuf, "RENAME TABLE `%s` TO `%s`", name, name + 9);
if (mysql_query(sock, qbuf)) rc= run_query(qbuf);
{
fprintf(stderr, "Failed to %s\n", qbuf);
fprintf(stderr, "Error: %s\n", mysql_error(sock));
rc= 1;
}
if (verbose) if (verbose)
printf("%-50s %s\n", name, rc ? "FAILED" : "OK"); printf("%-50s %s\n", name, rc ? "FAILED" : "OK");
return rc; return rc;
...@@ -617,12 +627,7 @@ static int fix_database_storage_name(const char *name) ...@@ -617,12 +627,7 @@ static int fix_database_storage_name(const char *name)
if (strncmp(name, "#mysql50#", 9)) if (strncmp(name, "#mysql50#", 9))
return 1; return 1;
sprintf(qbuf, "ALTER DATABASE `%s` UPGRADE DATA DIRECTORY NAME", name); sprintf(qbuf, "ALTER DATABASE `%s` UPGRADE DATA DIRECTORY NAME", name);
if (mysql_query(sock, qbuf)) rc= run_query(qbuf);
{
fprintf(stderr, "Failed to %s\n", qbuf);
fprintf(stderr, "Error: %s\n", mysql_error(sock));
rc= 1;
}
if (verbose) if (verbose)
printf("%-50s %s\n", name, rc ? "FAILED" : "OK"); printf("%-50s %s\n", name, rc ? "FAILED" : "OK");
return rc; return rc;
...@@ -685,13 +690,7 @@ static int use_db(char *database) ...@@ -685,13 +690,7 @@ static int use_db(char *database)
static int disable_binlog() static int disable_binlog()
{ {
const char *stmt= "SET SQL_LOG_BIN=0"; const char *stmt= "SET SQL_LOG_BIN=0";
if (mysql_query(sock, stmt)) return run_query(stmt);
{
fprintf(stderr, "Failed to %s\n", stmt);
fprintf(stderr, "Error: %s\n", mysql_error(sock));
return 1;
}
return 0;
} }
static int handle_request_for_tables(char *tables, uint length) static int handle_request_for_tables(char *tables, uint length)
...@@ -761,12 +760,14 @@ static void print_result() ...@@ -761,12 +760,14 @@ static void print_result()
MYSQL_RES *res; MYSQL_RES *res;
MYSQL_ROW row; MYSQL_ROW row;
char prev[NAME_LEN*2+2]; char prev[NAME_LEN*2+2];
char prev_alter[MAX_ALTER_STR_SIZE];
uint i; uint i;
my_bool found_error=0, table_rebuild=0; my_bool found_error=0, table_rebuild=0;
res = mysql_use_result(sock); res = mysql_use_result(sock);
prev[0] = '\0'; prev[0] = '\0';
prev_alter[0]= 0;
for (i = 0; (row = mysql_fetch_row(res)); i++) for (i = 0; (row = mysql_fetch_row(res)); i++)
{ {
int changed = strcmp(prev, row[0]); int changed = strcmp(prev, row[0]);
...@@ -783,12 +784,18 @@ static void print_result() ...@@ -783,12 +784,18 @@ static void print_result()
strcmp(row[3],"OK")) strcmp(row[3],"OK"))
{ {
if (table_rebuild) if (table_rebuild)
{
if (prev_alter[0])
insert_dynamic(&alter_table_cmds, (uchar*) prev_alter);
else
insert_dynamic(&tables4rebuild, (uchar*) prev); insert_dynamic(&tables4rebuild, (uchar*) prev);
}
else else
insert_dynamic(&tables4repair, (uchar*) prev); insert_dynamic(&tables4repair, (uchar*) prev);
} }
found_error=0; found_error=0;
table_rebuild=0; table_rebuild=0;
prev_alter[0]= 0;
if (opt_silent) if (opt_silent)
continue; continue;
} }
...@@ -797,11 +804,30 @@ static void print_result() ...@@ -797,11 +804,30 @@ static void print_result()
else if (!status && changed) else if (!status && changed)
{ {
printf("%s\n%-9s: %s", row[0], row[2], row[3]); printf("%s\n%-9s: %s", row[0], row[2], row[3]);
if (strcmp(row[2],"note")) if (opt_auto_repair && strcmp(row[2],"note"))
{ {
const char *alter_txt= strstr(row[3], "ALTER TABLE");
found_error=1; found_error=1;
if (opt_auto_repair && strstr(row[3], "ALTER TABLE") != NULL) if (alter_txt)
{
table_rebuild=1; table_rebuild=1;
if (!strncmp(row[3], KEY_PARTITIONING_CHANGED_STR,
strlen(KEY_PARTITIONING_CHANGED_STR)) &&
strstr(alter_txt, "PARTITION BY"))
{
if (strlen(alter_txt) >= MAX_ALTER_STR_SIZE)
{
printf("Error: Alter command too long (>= %d),"
" please do \"%s\" or dump/reload to fix it!\n",
MAX_ALTER_STR_SIZE,
alter_txt);
table_rebuild= 0;
prev_alter[0]= 0;
}
else
strcpy(prev_alter, alter_txt);
}
}
} }
} }
else else
...@@ -813,7 +839,12 @@ static void print_result() ...@@ -813,7 +839,12 @@ static void print_result()
if (found_error && opt_auto_repair && what_to_do != DO_REPAIR) if (found_error && opt_auto_repair && what_to_do != DO_REPAIR)
{ {
if (table_rebuild) if (table_rebuild)
{
if (prev_alter[0])
insert_dynamic(&alter_table_cmds, (uchar*) prev_alter);
else
insert_dynamic(&tables4rebuild, (uchar*) prev); insert_dynamic(&tables4rebuild, (uchar*) prev);
}
else else
insert_dynamic(&tables4repair, (uchar*) prev); insert_dynamic(&tables4repair, (uchar*) prev);
} }
...@@ -915,7 +946,8 @@ int main(int argc, char **argv) ...@@ -915,7 +946,8 @@ int main(int argc, char **argv)
if (opt_auto_repair && if (opt_auto_repair &&
(my_init_dynamic_array(&tables4repair, sizeof(char)*(NAME_LEN*2+2),16,64) || (my_init_dynamic_array(&tables4repair, sizeof(char)*(NAME_LEN*2+2),16,64) ||
my_init_dynamic_array(&tables4rebuild, sizeof(char)*(NAME_LEN*2+2),16,64))) my_init_dynamic_array(&tables4rebuild, sizeof(char)*(NAME_LEN*2+2),16,64) ||
my_init_dynamic_array(&alter_table_cmds, MAX_ALTER_STR_SIZE, 0, 1)))
{ {
first_error = 1; first_error = 1;
goto end; goto end;
...@@ -943,6 +975,8 @@ int main(int argc, char **argv) ...@@ -943,6 +975,8 @@ int main(int argc, char **argv)
} }
for (i = 0; i < tables4rebuild.elements ; i++) for (i = 0; i < tables4rebuild.elements ; i++)
rebuild_table((char*) dynamic_array_ptr(&tables4rebuild, i)); rebuild_table((char*) dynamic_array_ptr(&tables4rebuild, i));
for (i = 0; i < alter_table_cmds.elements ; i++)
run_query((char*) dynamic_array_ptr(&alter_table_cmds, i));
} }
end: end:
dbDisconnect(current_host); dbDisconnect(current_host);
......
...@@ -81,7 +81,7 @@ t1 CREATE TABLE `t1` ( ...@@ -81,7 +81,7 @@ t1 CREATE TABLE `t1` (
`a` int(11) NOT NULL, `a` int(11) NOT NULL,
`b` int(11) NOT NULL `b` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (a) /*!50100 PARTITION BY KEY ALGORITHM = 2 (a)
PARTITIONS 2 */ PARTITIONS 2 */
SELECT * FROM t1; SELECT * FROM t1;
a b a b
...@@ -175,7 +175,7 @@ t1 CREATE TABLE `t1` ( ...@@ -175,7 +175,7 @@ t1 CREATE TABLE `t1` (
PRIMARY KEY (`ID`,`aaaa,aaaaa`,`ddddddddd`) PRIMARY KEY (`ID`,`aaaa,aaaaa`,`ddddddddd`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (ID) /*!50100 PARTITION BY RANGE (ID)
SUBPARTITION BY LINEAR KEY (ID,`aaaa,aaaaa`) SUBPARTITION BY LINEAR KEY ALGORITHM = 2 (ID,`aaaa,aaaaa`)
SUBPARTITIONS 2 SUBPARTITIONS 2
(PARTITION p01 VALUES LESS THAN (100) ENGINE = MyISAM, (PARTITION p01 VALUES LESS THAN (100) ENGINE = MyISAM,
PARTITION p11 VALUES LESS THAN (200) ENGINE = MyISAM, PARTITION p11 VALUES LESS THAN (200) ENGINE = MyISAM,
...@@ -722,7 +722,7 @@ t1 CREATE TABLE `t1` ( ...@@ -722,7 +722,7 @@ t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) /*!50100 PARTITION BY RANGE (a)
SUBPARTITION BY KEY (a) SUBPARTITION BY KEY ALGORITHM = 2 (a)
(PARTITION p0 VALUES LESS THAN (1) ENGINE = MyISAM, (PARTITION p0 VALUES LESS THAN (1) ENGINE = MyISAM,
PARTITION p1 VALUES LESS THAN (2) ENGINE = MyISAM) */ PARTITION p1 VALUES LESS THAN (2) ENGINE = MyISAM) */
alter table t1 reorganize partition p1 into (partition p1 values less than (3)); alter table t1 reorganize partition p1 into (partition p1 values less than (3));
...@@ -732,7 +732,7 @@ t1 CREATE TABLE `t1` ( ...@@ -732,7 +732,7 @@ t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (a) /*!50100 PARTITION BY RANGE (a)
SUBPARTITION BY KEY (a) SUBPARTITION BY KEY ALGORITHM = 2 (a)
(PARTITION p0 VALUES LESS THAN (1) ENGINE = MyISAM, (PARTITION p0 VALUES LESS THAN (1) ENGINE = MyISAM,
PARTITION p1 VALUES LESS THAN (3) ENGINE = MyISAM) */ PARTITION p1 VALUES LESS THAN (3) ENGINE = MyISAM) */
drop table t1; drop table t1;
...@@ -753,7 +753,7 @@ t1 CREATE TABLE `t1` ( ...@@ -753,7 +753,7 @@ t1 CREATE TABLE `t1` (
`c` int(11) NOT NULL, `c` int(11) NOT NULL,
PRIMARY KEY (`a`,`b`) PRIMARY KEY (`a`,`b`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (a) */ /*!50100 PARTITION BY KEY ALGORITHM = 2 (a) */
drop table t1; drop table t1;
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
...@@ -1074,7 +1074,7 @@ Table Create Table ...@@ -1074,7 +1074,7 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (a) /*!50100 PARTITION BY KEY ALGORITHM = 2 (a)
(PARTITION p0 ENGINE = MyISAM, (PARTITION p0 ENGINE = MyISAM,
PARTITION p1 ENGINE = MyISAM) */ PARTITION p1 ENGINE = MyISAM) */
alter table t1; alter table t1;
...@@ -1083,7 +1083,7 @@ Table Create Table ...@@ -1083,7 +1083,7 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (a) /*!50100 PARTITION BY KEY ALGORITHM = 2 (a)
(PARTITION p0 ENGINE = MyISAM, (PARTITION p0 ENGINE = MyISAM,
PARTITION p1 ENGINE = MyISAM) */ PARTITION p1 ENGINE = MyISAM) */
alter table t1 engine=myisam; alter table t1 engine=myisam;
...@@ -1092,7 +1092,7 @@ Table Create Table ...@@ -1092,7 +1092,7 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (a) /*!50100 PARTITION BY KEY ALGORITHM = 2 (a)
(PARTITION p0 ENGINE = MyISAM, (PARTITION p0 ENGINE = MyISAM,
PARTITION p1 ENGINE = MyISAM) */ PARTITION p1 ENGINE = MyISAM) */
alter table t1 engine=heap; alter table t1 engine=heap;
...@@ -1101,7 +1101,7 @@ Table Create Table ...@@ -1101,7 +1101,7 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=MEMORY DEFAULT CHARSET=latin1 ) ENGINE=MEMORY DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (a) /*!50100 PARTITION BY KEY ALGORITHM = 2 (a)
(PARTITION p0 ENGINE = MEMORY, (PARTITION p0 ENGINE = MEMORY,
PARTITION p1 ENGINE = MEMORY) */ PARTITION p1 ENGINE = MEMORY) */
alter table t1 remove partitioning; alter table t1 remove partitioning;
...@@ -1121,7 +1121,7 @@ Table Create Table ...@@ -1121,7 +1121,7 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (a) /*!50100 PARTITION BY KEY ALGORITHM = 2 (a)
(PARTITION p0 ENGINE = MyISAM, (PARTITION p0 ENGINE = MyISAM,
PARTITION p1 ENGINE = MyISAM) */ PARTITION p1 ENGINE = MyISAM) */
alter table t1 add column b int remove partitioning; alter table t1 add column b int remove partitioning;
...@@ -1141,7 +1141,7 @@ t1 CREATE TABLE `t1` ( ...@@ -1141,7 +1141,7 @@ t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL, `a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL `b` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (a) /*!50100 PARTITION BY KEY ALGORITHM = 2 (a)
(PARTITION p0 ENGINE = MyISAM, (PARTITION p0 ENGINE = MyISAM,
PARTITION p1 ENGINE = MyISAM) */ PARTITION p1 ENGINE = MyISAM) */
alter table t1 alter table t1
...@@ -1154,7 +1154,7 @@ t1 CREATE TABLE `t1` ( ...@@ -1154,7 +1154,7 @@ t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL, `a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL `b` int(11) DEFAULT NULL
) ENGINE=MEMORY DEFAULT CHARSET=latin1 ) ENGINE=MEMORY DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (a) /*!50100 PARTITION BY KEY ALGORITHM = 2 (a)
(PARTITION p0 ENGINE = MEMORY, (PARTITION p0 ENGINE = MEMORY,
PARTITION p1 ENGINE = MEMORY) */ PARTITION p1 ENGINE = MEMORY) */
alter table t1 engine=myisam, add column c int remove partitioning; alter table t1 engine=myisam, add column c int remove partitioning;
...@@ -1176,7 +1176,7 @@ t1 CREATE TABLE `t1` ( ...@@ -1176,7 +1176,7 @@ t1 CREATE TABLE `t1` (
`b` int(11) DEFAULT NULL, `b` int(11) DEFAULT NULL,
`c` int(11) DEFAULT NULL `c` int(11) DEFAULT NULL
) ENGINE=MEMORY DEFAULT CHARSET=latin1 ) ENGINE=MEMORY DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (a) /*!50100 PARTITION BY KEY ALGORITHM = 2 (a)
(PARTITION p0 ENGINE = MEMORY, (PARTITION p0 ENGINE = MEMORY,
PARTITION p1 ENGINE = MEMORY) */ PARTITION p1 ENGINE = MEMORY) */
alter table t1 alter table t1
...@@ -1189,7 +1189,7 @@ t1 CREATE TABLE `t1` ( ...@@ -1189,7 +1189,7 @@ t1 CREATE TABLE `t1` (
`b` int(11) DEFAULT NULL, `b` int(11) DEFAULT NULL,
`c` int(11) DEFAULT NULL `c` int(11) DEFAULT NULL
) ENGINE=MEMORY DEFAULT CHARSET=latin1 ) ENGINE=MEMORY DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (a) /*!50100 PARTITION BY KEY ALGORITHM = 2 (a)
(PARTITION p0 ENGINE = MEMORY, (PARTITION p0 ENGINE = MEMORY,
PARTITION p1 ENGINE = MEMORY) */ PARTITION p1 ENGINE = MEMORY) */
alter table t1 alter table t1
...@@ -1203,7 +1203,7 @@ t1 CREATE TABLE `t1` ( ...@@ -1203,7 +1203,7 @@ t1 CREATE TABLE `t1` (
`b` int(11) DEFAULT NULL, `b` int(11) DEFAULT NULL,
`c` int(11) DEFAULT NULL `c` int(11) DEFAULT NULL
) ENGINE=MEMORY DEFAULT CHARSET=latin1 ) ENGINE=MEMORY DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (a) /*!50100 PARTITION BY KEY ALGORITHM = 2 (a)
(PARTITION p0 ENGINE = MEMORY, (PARTITION p0 ENGINE = MEMORY,
PARTITION p1 ENGINE = MEMORY) */ PARTITION p1 ENGINE = MEMORY) */
alter table t1 alter table t1
...@@ -1373,14 +1373,14 @@ Table Create Table ...@@ -1373,14 +1373,14 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (a) */ /*!50100 PARTITION BY KEY ALGORITHM = 2 (a) */
alter table t1 add partition (partition p1); alter table t1 add partition (partition p1);
show create table t1; show create table t1;
Table Create Table Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (a) /*!50100 PARTITION BY KEY ALGORITHM = 2 (a)
(PARTITION p0 ENGINE = MyISAM, (PARTITION p0 ENGINE = MyISAM,
PARTITION p1 ENGINE = MyISAM) */ PARTITION p1 ENGINE = MyISAM) */
drop table t1; drop table t1;
...@@ -1480,7 +1480,7 @@ t2 CREATE TABLE `t2` ( ...@@ -1480,7 +1480,7 @@ t2 CREATE TABLE `t2` (
`c` char(10) DEFAULT NULL, `c` char(10) DEFAULT NULL,
PRIMARY KEY (`a`) PRIMARY KEY (`a`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='no comment' ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='no comment'
/*!50100 PARTITION BY KEY (a) */ /*!50100 PARTITION BY KEY ALGORITHM = 2 (a) */
drop table t2; drop table t2;
create table t1 (f1 int) partition by hash (f1) as select 1; create table t1 (f1 int) partition by hash (f1) as select 1;
drop table t1; drop table t1;
...@@ -1715,7 +1715,7 @@ Table Create Table ...@@ -1715,7 +1715,7 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) )
/*!50100 PARTITION BY KEY (a) /*!50100 PARTITION BY KEY ALGORITHM = 2 (a)
(PARTITION p0) */ (PARTITION p0) */
set session sql_mode=''; set session sql_mode='';
drop table t1; drop table t1;
...@@ -1731,7 +1731,7 @@ Table Create Table ...@@ -1731,7 +1731,7 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` varchar(1) DEFAULT NULL `a` varchar(1) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (a) */ /*!50100 PARTITION BY KEY ALGORITHM = 2 (a) */
drop table t1; drop table t1;
CREATE TABLE t1 (a int) ENGINE = MYISAM PARTITION BY KEY(a); CREATE TABLE t1 (a int) ENGINE = MYISAM PARTITION BY KEY(a);
INSERT into t1 values (1), (2); INSERT into t1 values (1), (2);
...@@ -1758,13 +1758,13 @@ engine=MEMORY ...@@ -1758,13 +1758,13 @@ engine=MEMORY
partition by key (a); partition by key (a);
REPAIR TABLE t1; REPAIR TABLE t1;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 repair note The storage engine for the table doesn't support repair test.t1 repair status OK
OPTIMIZE TABLE t1; OPTIMIZE TABLE t1;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 optimize note The storage engine for the table doesn't support optimize test.t1 optimize note The storage engine for the table doesn't support optimize
CHECK TABLE t1; CHECK TABLE t1;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 check note The storage engine for the table doesn't support check test.t1 check status OK
ANALYZE TABLE t1; ANALYZE TABLE t1;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 analyze note The storage engine for the table doesn't support analyze test.t1 analyze note The storage engine for the table doesn't support analyze
...@@ -1804,7 +1804,7 @@ t1 CREATE TABLE `t1` ( ...@@ -1804,7 +1804,7 @@ t1 CREATE TABLE `t1` (
`a` bigint(20) unsigned NOT NULL, `a` bigint(20) unsigned NOT NULL,
PRIMARY KEY (`a`) PRIMARY KEY (`a`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (a) /*!50100 PARTITION BY KEY ALGORITHM = 2 (a)
PARTITIONS 10 */ PARTITIONS 10 */
insert into t1 values (18446744073709551615), (0xFFFFFFFFFFFFFFFE), insert into t1 values (18446744073709551615), (0xFFFFFFFFFFFFFFFE),
(18446744073709551613), (18446744073709551612); (18446744073709551613), (18446744073709551612);
......
...@@ -454,7 +454,7 @@ t1 CREATE TABLE `t1` ( ...@@ -454,7 +454,7 @@ t1 CREATE TABLE `t1` (
`d` int(11) DEFAULT NULL `d` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50500 PARTITION BY RANGE COLUMNS(a,b,c) /*!50500 PARTITION BY RANGE COLUMNS(a,b,c)
SUBPARTITION BY KEY (c,d) SUBPARTITION BY KEY ALGORITHM = 2 (c,d)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION p0 VALUES LESS THAN (1,'abc','abc') ENGINE = MyISAM, (PARTITION p0 VALUES LESS THAN (1,'abc','abc') ENGINE = MyISAM,
PARTITION p1 VALUES LESS THAN (2,'abc','abc') ENGINE = MyISAM, PARTITION p1 VALUES LESS THAN (2,'abc','abc') ENGINE = MyISAM,
......
...@@ -425,7 +425,7 @@ Table Create Table ...@@ -425,7 +425,7 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (a) */ /*!50100 PARTITION BY KEY ALGORITHM = 2 (a) */
drop table t1; drop table t1;
create table t1 (a int) create table t1 (a int)
engine = innodb engine = innodb
...@@ -518,7 +518,7 @@ t1 CREATE TABLE `t1` ( ...@@ -518,7 +518,7 @@ t1 CREATE TABLE `t1` (
`char_column` char(5) DEFAULT NULL `char_column` char(5) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (int_column) /*!50100 PARTITION BY RANGE (int_column)
SUBPARTITION BY KEY (char_column) SUBPARTITION BY KEY ALGORITHM = 2 (char_column)
SUBPARTITIONS 2 SUBPARTITIONS 2
(PARTITION p1 VALUES LESS THAN (5) ENGINE = MyISAM) */ (PARTITION p1 VALUES LESS THAN (5) ENGINE = MyISAM) */
drop table t1; drop table t1;
...@@ -565,7 +565,7 @@ t1 CREATE TABLE `t1` ( ...@@ -565,7 +565,7 @@ t1 CREATE TABLE `t1` (
`b` int(11) NOT NULL, `b` int(11) NOT NULL,
PRIMARY KEY (`a`) PRIMARY KEY (`a`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (a) /*!50100 PARTITION BY KEY ALGORITHM = 2 (a)
PARTITIONS 2 */ PARTITIONS 2 */
SELECT * FROM t1; SELECT * FROM t1;
a b a b
......
...@@ -145,7 +145,7 @@ Table Create Table ...@@ -145,7 +145,7 @@ Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL `a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (a) /*!50100 PARTITION BY KEY ALGORITHM = 2 (a)
PARTITIONS 2 */ PARTITIONS 2 */
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (a INT) PARTITION BY HASH(a); CREATE TABLE t1 (a INT) PARTITION BY HASH(a);
......
...@@ -150,7 +150,7 @@ t1 CREATE TABLE `t1` ( ...@@ -150,7 +150,7 @@ t1 CREATE TABLE `t1` (
`a` int(11) NOT NULL AUTO_INCREMENT, `a` int(11) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`a`) PRIMARY KEY (`a`)
) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=latin1 ) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (a) */ /*!50100 PARTITION BY KEY ALGORITHM = 2 (a) */
INSERT INTO t1 VALUES (NULL); INSERT INTO t1 VALUES (NULL);
SELECT * FROM t1; SELECT * FROM t1;
a a
......
...@@ -15,7 +15,7 @@ Catalog Database Table Table_alias Column Column_alias Type Length Max length Is ...@@ -15,7 +15,7 @@ Catalog Database Table Table_alias Column Column_alias Type Length Max length Is
def Table 253 128 7 Y 0 31 8 def Table 253 128 7 Y 0 31 8
def Op 253 10 5 Y 0 31 8 def Op 253 10 5 Y 0 31 8
def Msg_type 253 10 6 Y 0 31 8 def Msg_type 253 10 6 Y 0 31 8
def Msg_text 253 255 27 Y 0 31 8 def Msg_text 250 393216 27 Y 0 31 8
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 check status Table is already up to date test.t1 check status Table is already up to date
check table t1 fast; check table t1 fast;
...@@ -23,7 +23,7 @@ Catalog Database Table Table_alias Column Column_alias Type Length Max length Is ...@@ -23,7 +23,7 @@ Catalog Database Table Table_alias Column Column_alias Type Length Max length Is
def Table 253 128 7 Y 0 31 8 def Table 253 128 7 Y 0 31 8
def Op 253 10 5 Y 0 31 8 def Op 253 10 5 Y 0 31 8
def Msg_type 253 10 6 Y 0 31 8 def Msg_type 253 10 6 Y 0 31 8
def Msg_text 253 255 27 Y 0 31 8 def Msg_text 250 393216 27 Y 0 31 8
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 check status Table is already up to date test.t1 check status Table is already up to date
check table t1 changed; check table t1 changed;
...@@ -31,7 +31,7 @@ Catalog Database Table Table_alias Column Column_alias Type Length Max length Is ...@@ -31,7 +31,7 @@ Catalog Database Table Table_alias Column Column_alias Type Length Max length Is
def Table 253 128 7 Y 0 31 8 def Table 253 128 7 Y 0 31 8
def Op 253 10 5 Y 0 31 8 def Op 253 10 5 Y 0 31 8
def Msg_type 253 10 6 Y 0 31 8 def Msg_type 253 10 6 Y 0 31 8
def Msg_text 253 255 2 Y 0 31 8 def Msg_text 250 393216 2 Y 0 31 8
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 check status OK test.t1 check status OK
insert into t1 values (5,5,5); insert into t1 values (5,5,5);
...@@ -40,7 +40,7 @@ Catalog Database Table Table_alias Column Column_alias Type Length Max length Is ...@@ -40,7 +40,7 @@ Catalog Database Table Table_alias Column Column_alias Type Length Max length Is
def Table 253 128 7 Y 0 31 8 def Table 253 128 7 Y 0 31 8
def Op 253 10 5 Y 0 31 8 def Op 253 10 5 Y 0 31 8
def Msg_type 253 10 6 Y 0 31 8 def Msg_type 253 10 6 Y 0 31 8
def Msg_text 253 255 2 Y 0 31 8 def Msg_text 250 393216 2 Y 0 31 8
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 check status OK test.t1 check status OK
check table t1 medium; check table t1 medium;
...@@ -48,7 +48,7 @@ Catalog Database Table Table_alias Column Column_alias Type Length Max length Is ...@@ -48,7 +48,7 @@ Catalog Database Table Table_alias Column Column_alias Type Length Max length Is
def Table 253 128 7 Y 0 31 8 def Table 253 128 7 Y 0 31 8
def Op 253 10 5 Y 0 31 8 def Op 253 10 5 Y 0 31 8
def Msg_type 253 10 6 Y 0 31 8 def Msg_type 253 10 6 Y 0 31 8
def Msg_text 253 255 2 Y 0 31 8 def Msg_text 250 393216 2 Y 0 31 8
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 check status OK test.t1 check status OK
check table t1 extended; check table t1 extended;
...@@ -56,7 +56,7 @@ Catalog Database Table Table_alias Column Column_alias Type Length Max length Is ...@@ -56,7 +56,7 @@ Catalog Database Table Table_alias Column Column_alias Type Length Max length Is
def Table 253 128 7 Y 0 31 8 def Table 253 128 7 Y 0 31 8
def Op 253 10 5 Y 0 31 8 def Op 253 10 5 Y 0 31 8
def Msg_type 253 10 6 Y 0 31 8 def Msg_type 253 10 6 Y 0 31 8
def Msg_text 253 255 2 Y 0 31 8 def Msg_text 250 393216 2 Y 0 31 8
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 check status OK test.t1 check status OK
show index from t1; show index from t1;
...@@ -88,7 +88,7 @@ Catalog Database Table Table_alias Column Column_alias Type Length Max length Is ...@@ -88,7 +88,7 @@ Catalog Database Table Table_alias Column Column_alias Type Length Max length Is
def Table 253 128 7 Y 0 31 8 def Table 253 128 7 Y 0 31 8
def Op 253 10 8 Y 0 31 8 def Op 253 10 8 Y 0 31 8
def Msg_type 253 10 6 Y 0 31 8 def Msg_type 253 10 6 Y 0 31 8
def Msg_text 253 255 2 Y 0 31 8 def Msg_text 250 393216 2 Y 0 31 8
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 optimize status OK test.t1 optimize status OK
optimize table t1; optimize table t1;
...@@ -160,7 +160,7 @@ Catalog Database Table Table_alias Column Column_alias Type Length Max length Is ...@@ -160,7 +160,7 @@ Catalog Database Table Table_alias Column Column_alias Type Length Max length Is
def Table 253 128 7 Y 0 31 8 def Table 253 128 7 Y 0 31 8
def Op 253 10 7 Y 0 31 8 def Op 253 10 7 Y 0 31 8
def Msg_type 253 10 6 Y 0 31 8 def Msg_type 253 10 6 Y 0 31 8
def Msg_text 253 255 2 Y 0 31 8 def Msg_text 250 393216 2 Y 0 31 8
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 analyze status OK test.t1 analyze status OK
show index from t1; show index from t1;
...@@ -177,7 +177,7 @@ Catalog Database Table Table_alias Column Column_alias Type Length Max length Is ...@@ -177,7 +177,7 @@ Catalog Database Table Table_alias Column Column_alias Type Length Max length Is
def Table 253 128 7 Y 0 31 8 def Table 253 128 7 Y 0 31 8
def Op 253 10 6 Y 0 31 8 def Op 253 10 6 Y 0 31 8
def Msg_type 253 10 6 Y 0 31 8 def Msg_type 253 10 6 Y 0 31 8
def Msg_text 253 255 2 Y 0 31 8 def Msg_text 250 393216 2 Y 0 31 8
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 repair status OK test.t1 repair status OK
show index from t1; show index from t1;
......
...@@ -592,7 +592,7 @@ t1 CREATE TABLE `t1` ( ...@@ -592,7 +592,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL, `f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`) UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1,f_int2) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1,f_int2)
PARTITIONS 5 */ PARTITIONS 5 */
unified filelist unified filelist
...@@ -2738,7 +2738,7 @@ t1 CREATE TABLE `t1` ( ...@@ -2738,7 +2738,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`) UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 ENGINE = MyISAM, (SUBPARTITION subpart11 ENGINE = MyISAM,
SUBPARTITION subpart12 ENGINE = MyISAM), SUBPARTITION subpart12 ENGINE = MyISAM),
...@@ -3830,7 +3830,7 @@ t1 CREATE TABLE `t1` ( ...@@ -3830,7 +3830,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`) UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2))) /*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2)))
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION part1 VALUES IN (0) ENGINE = MyISAM, (PARTITION part1 VALUES IN (0) ENGINE = MyISAM,
PARTITION part2 VALUES IN (1) ENGINE = MyISAM, PARTITION part2 VALUES IN (1) ENGINE = MyISAM,
...@@ -4882,7 +4882,7 @@ t1 CREATE TABLE `t1` ( ...@@ -4882,7 +4882,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL, `f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`) UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1,f_int2) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1,f_int2)
PARTITIONS 5 */ PARTITIONS 5 */
unified filelist unified filelist
...@@ -7028,7 +7028,7 @@ t1 CREATE TABLE `t1` ( ...@@ -7028,7 +7028,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`) UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 ENGINE = MyISAM, (SUBPARTITION subpart11 ENGINE = MyISAM,
SUBPARTITION subpart12 ENGINE = MyISAM), SUBPARTITION subpart12 ENGINE = MyISAM),
...@@ -8120,7 +8120,7 @@ t1 CREATE TABLE `t1` ( ...@@ -8120,7 +8120,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`) UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2))) /*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2)))
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION part1 VALUES IN (0) ENGINE = MyISAM, (PARTITION part1 VALUES IN (0) ENGINE = MyISAM,
PARTITION part2 VALUES IN (1) ENGINE = MyISAM, PARTITION part2 VALUES IN (1) ENGINE = MyISAM,
......
...@@ -751,7 +751,7 @@ t1 CREATE TABLE `t1` ( ...@@ -751,7 +751,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL, `f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`) UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
PARTITIONS 5 */ PARTITIONS 5 */
unified filelist unified filelist
...@@ -2899,7 +2899,7 @@ t1 CREATE TABLE `t1` ( ...@@ -2899,7 +2899,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`) UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int1) SUBPARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 ENGINE = MyISAM, (SUBPARTITION subpart11 ENGINE = MyISAM,
SUBPARTITION subpart12 ENGINE = MyISAM), SUBPARTITION subpart12 ENGINE = MyISAM),
...@@ -3991,7 +3991,7 @@ t1 CREATE TABLE `t1` ( ...@@ -3991,7 +3991,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`) UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2))) /*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2)))
SUBPARTITION BY KEY (f_int1) SUBPARTITION BY KEY ALGORITHM = 2 (f_int1)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION part1 VALUES IN (0) ENGINE = MyISAM, (PARTITION part1 VALUES IN (0) ENGINE = MyISAM,
PARTITION part2 VALUES IN (1) ENGINE = MyISAM, PARTITION part2 VALUES IN (1) ENGINE = MyISAM,
...@@ -5043,7 +5043,7 @@ t1 CREATE TABLE `t1` ( ...@@ -5043,7 +5043,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL, `f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`) UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
PARTITIONS 5 */ PARTITIONS 5 */
unified filelist unified filelist
...@@ -7191,7 +7191,7 @@ t1 CREATE TABLE `t1` ( ...@@ -7191,7 +7191,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`) UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int1) SUBPARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 ENGINE = MyISAM, (SUBPARTITION subpart11 ENGINE = MyISAM,
SUBPARTITION subpart12 ENGINE = MyISAM), SUBPARTITION subpart12 ENGINE = MyISAM),
...@@ -8283,7 +8283,7 @@ t1 CREATE TABLE `t1` ( ...@@ -8283,7 +8283,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`) UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2))) /*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2)))
SUBPARTITION BY KEY (f_int1) SUBPARTITION BY KEY ALGORITHM = 2 (f_int1)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION part1 VALUES IN (0) ENGINE = MyISAM, (PARTITION part1 VALUES IN (0) ENGINE = MyISAM,
PARTITION part2 VALUES IN (1) ENGINE = MyISAM, PARTITION part2 VALUES IN (1) ENGINE = MyISAM,
......
...@@ -537,7 +537,7 @@ t1 CREATE TABLE `t1` ( ...@@ -537,7 +537,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
PARTITIONS 5 */ PARTITIONS 5 */
unified filelist unified filelist
...@@ -2477,7 +2477,7 @@ t1 CREATE TABLE `t1` ( ...@@ -2477,7 +2477,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int1) SUBPARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 ENGINE = MyISAM, (SUBPARTITION subpart11 ENGINE = MyISAM,
SUBPARTITION subpart12 ENGINE = MyISAM), SUBPARTITION subpart12 ENGINE = MyISAM),
...@@ -3465,7 +3465,7 @@ t1 CREATE TABLE `t1` ( ...@@ -3465,7 +3465,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2))) /*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2)))
SUBPARTITION BY KEY (f_int1) SUBPARTITION BY KEY ALGORITHM = 2 (f_int1)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION part1 VALUES IN (0) ENGINE = MyISAM, (PARTITION part1 VALUES IN (0) ENGINE = MyISAM,
PARTITION part2 VALUES IN (1) ENGINE = MyISAM, PARTITION part2 VALUES IN (1) ENGINE = MyISAM,
...@@ -4417,7 +4417,7 @@ t1 CREATE TABLE `t1` ( ...@@ -4417,7 +4417,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1,f_int2) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1,f_int2)
PARTITIONS 5 */ PARTITIONS 5 */
unified filelist unified filelist
...@@ -6355,7 +6355,7 @@ t1 CREATE TABLE `t1` ( ...@@ -6355,7 +6355,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 ENGINE = MyISAM, (SUBPARTITION subpart11 ENGINE = MyISAM,
SUBPARTITION subpart12 ENGINE = MyISAM), SUBPARTITION subpart12 ENGINE = MyISAM),
...@@ -7343,7 +7343,7 @@ t1 CREATE TABLE `t1` ( ...@@ -7343,7 +7343,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2))) /*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2)))
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION part1 VALUES IN (0) ENGINE = MyISAM, (PARTITION part1 VALUES IN (0) ENGINE = MyISAM,
PARTITION part2 VALUES IN (1) ENGINE = MyISAM, PARTITION part2 VALUES IN (1) ENGINE = MyISAM,
...@@ -8291,7 +8291,7 @@ t1 CREATE TABLE `t1` ( ...@@ -8291,7 +8291,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1,f_int2) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1,f_int2)
PARTITIONS 5 */ PARTITIONS 5 */
unified filelist unified filelist
...@@ -10229,7 +10229,7 @@ t1 CREATE TABLE `t1` ( ...@@ -10229,7 +10229,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 ENGINE = MyISAM, (SUBPARTITION subpart11 ENGINE = MyISAM,
SUBPARTITION subpart12 ENGINE = MyISAM), SUBPARTITION subpart12 ENGINE = MyISAM),
...@@ -11217,7 +11217,7 @@ t1 CREATE TABLE `t1` ( ...@@ -11217,7 +11217,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2))) /*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2)))
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION part1 VALUES IN (0) ENGINE = MyISAM, (PARTITION part1 VALUES IN (0) ENGINE = MyISAM,
PARTITION part2 VALUES IN (1) ENGINE = MyISAM, PARTITION part2 VALUES IN (1) ENGINE = MyISAM,
...@@ -12165,7 +12165,7 @@ t1 CREATE TABLE `t1` ( ...@@ -12165,7 +12165,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1,f_int2) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1,f_int2)
PARTITIONS 5 */ PARTITIONS 5 */
unified filelist unified filelist
...@@ -14103,7 +14103,7 @@ t1 CREATE TABLE `t1` ( ...@@ -14103,7 +14103,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 ENGINE = MyISAM, (SUBPARTITION subpart11 ENGINE = MyISAM,
SUBPARTITION subpart12 ENGINE = MyISAM), SUBPARTITION subpart12 ENGINE = MyISAM),
...@@ -15091,7 +15091,7 @@ t1 CREATE TABLE `t1` ( ...@@ -15091,7 +15091,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2))) /*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2)))
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION part1 VALUES IN (0) ENGINE = MyISAM, (PARTITION part1 VALUES IN (0) ENGINE = MyISAM,
PARTITION part2 VALUES IN (1) ENGINE = MyISAM, PARTITION part2 VALUES IN (1) ENGINE = MyISAM,
......
...@@ -539,7 +539,7 @@ t1 CREATE TABLE `t1` ( ...@@ -539,7 +539,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
PARTITIONS 5 */ PARTITIONS 5 */
unified filelist unified filelist
...@@ -2479,7 +2479,7 @@ t1 CREATE TABLE `t1` ( ...@@ -2479,7 +2479,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int1) SUBPARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 ENGINE = MyISAM, (SUBPARTITION subpart11 ENGINE = MyISAM,
SUBPARTITION subpart12 ENGINE = MyISAM), SUBPARTITION subpart12 ENGINE = MyISAM),
...@@ -3467,7 +3467,7 @@ t1 CREATE TABLE `t1` ( ...@@ -3467,7 +3467,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2))) /*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2)))
SUBPARTITION BY KEY (f_int1) SUBPARTITION BY KEY ALGORITHM = 2 (f_int1)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION part1 VALUES IN (0) ENGINE = MyISAM, (PARTITION part1 VALUES IN (0) ENGINE = MyISAM,
PARTITION part2 VALUES IN (1) ENGINE = MyISAM, PARTITION part2 VALUES IN (1) ENGINE = MyISAM,
...@@ -4469,7 +4469,7 @@ t1 CREATE TABLE `t1` ( ...@@ -4469,7 +4469,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL, `f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`) UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
PARTITIONS 5 */ PARTITIONS 5 */
unified filelist unified filelist
...@@ -6617,7 +6617,7 @@ t1 CREATE TABLE `t1` ( ...@@ -6617,7 +6617,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`) UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int1) SUBPARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 ENGINE = MyISAM, (SUBPARTITION subpart11 ENGINE = MyISAM,
SUBPARTITION subpart12 ENGINE = MyISAM), SUBPARTITION subpart12 ENGINE = MyISAM),
...@@ -7709,7 +7709,7 @@ t1 CREATE TABLE `t1` ( ...@@ -7709,7 +7709,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`) UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2))) /*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2)))
SUBPARTITION BY KEY (f_int1) SUBPARTITION BY KEY ALGORITHM = 2 (f_int1)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION part1 VALUES IN (0) ENGINE = MyISAM, (PARTITION part1 VALUES IN (0) ENGINE = MyISAM,
PARTITION part2 VALUES IN (1) ENGINE = MyISAM, PARTITION part2 VALUES IN (1) ENGINE = MyISAM,
...@@ -8761,7 +8761,7 @@ t1 CREATE TABLE `t1` ( ...@@ -8761,7 +8761,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL, `f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`) UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
PARTITIONS 5 */ PARTITIONS 5 */
unified filelist unified filelist
...@@ -10909,7 +10909,7 @@ t1 CREATE TABLE `t1` ( ...@@ -10909,7 +10909,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`) UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int1) SUBPARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 ENGINE = MyISAM, (SUBPARTITION subpart11 ENGINE = MyISAM,
SUBPARTITION subpart12 ENGINE = MyISAM), SUBPARTITION subpart12 ENGINE = MyISAM),
...@@ -12001,7 +12001,7 @@ t1 CREATE TABLE `t1` ( ...@@ -12001,7 +12001,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`) UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2))) /*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2)))
SUBPARTITION BY KEY (f_int1) SUBPARTITION BY KEY ALGORITHM = 2 (f_int1)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION part1 VALUES IN (0) ENGINE = MyISAM, (PARTITION part1 VALUES IN (0) ENGINE = MyISAM,
PARTITION part2 VALUES IN (1) ENGINE = MyISAM, PARTITION part2 VALUES IN (1) ENGINE = MyISAM,
...@@ -13005,7 +13005,7 @@ t1 CREATE TABLE `t1` ( ...@@ -13005,7 +13005,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1,f_int2) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1,f_int2)
PARTITIONS 5 */ PARTITIONS 5 */
unified filelist unified filelist
...@@ -14943,7 +14943,7 @@ t1 CREATE TABLE `t1` ( ...@@ -14943,7 +14943,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 ENGINE = MyISAM, (SUBPARTITION subpart11 ENGINE = MyISAM,
SUBPARTITION subpart12 ENGINE = MyISAM), SUBPARTITION subpart12 ENGINE = MyISAM),
...@@ -15931,7 +15931,7 @@ t1 CREATE TABLE `t1` ( ...@@ -15931,7 +15931,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2))) /*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2)))
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION part1 VALUES IN (0) ENGINE = MyISAM, (PARTITION part1 VALUES IN (0) ENGINE = MyISAM,
PARTITION part2 VALUES IN (1) ENGINE = MyISAM, PARTITION part2 VALUES IN (1) ENGINE = MyISAM,
...@@ -16933,7 +16933,7 @@ t1 CREATE TABLE `t1` ( ...@@ -16933,7 +16933,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL, `f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx` (`f_int1`,`f_int2`) UNIQUE KEY `uidx` (`f_int1`,`f_int2`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1,f_int2) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1,f_int2)
PARTITIONS 5 */ PARTITIONS 5 */
unified filelist unified filelist
...@@ -19079,7 +19079,7 @@ t1 CREATE TABLE `t1` ( ...@@ -19079,7 +19079,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx` (`f_int1`,`f_int2`) UNIQUE KEY `uidx` (`f_int1`,`f_int2`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 ENGINE = MyISAM, (SUBPARTITION subpart11 ENGINE = MyISAM,
SUBPARTITION subpart12 ENGINE = MyISAM), SUBPARTITION subpart12 ENGINE = MyISAM),
...@@ -20171,7 +20171,7 @@ t1 CREATE TABLE `t1` ( ...@@ -20171,7 +20171,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx` (`f_int1`,`f_int2`) UNIQUE KEY `uidx` (`f_int1`,`f_int2`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2))) /*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2)))
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION part1 VALUES IN (0) ENGINE = MyISAM, (PARTITION part1 VALUES IN (0) ENGINE = MyISAM,
PARTITION part2 VALUES IN (1) ENGINE = MyISAM, PARTITION part2 VALUES IN (1) ENGINE = MyISAM,
...@@ -21223,7 +21223,7 @@ t1 CREATE TABLE `t1` ( ...@@ -21223,7 +21223,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL, `f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx` (`f_int2`,`f_int1`) UNIQUE KEY `uidx` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1,f_int2) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1,f_int2)
PARTITIONS 5 */ PARTITIONS 5 */
unified filelist unified filelist
...@@ -23369,7 +23369,7 @@ t1 CREATE TABLE `t1` ( ...@@ -23369,7 +23369,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx` (`f_int2`,`f_int1`) UNIQUE KEY `uidx` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 ENGINE = MyISAM, (SUBPARTITION subpart11 ENGINE = MyISAM,
SUBPARTITION subpart12 ENGINE = MyISAM), SUBPARTITION subpart12 ENGINE = MyISAM),
...@@ -24461,7 +24461,7 @@ t1 CREATE TABLE `t1` ( ...@@ -24461,7 +24461,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx` (`f_int2`,`f_int1`) UNIQUE KEY `uidx` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2))) /*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2)))
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION part1 VALUES IN (0) ENGINE = MyISAM, (PARTITION part1 VALUES IN (0) ENGINE = MyISAM,
PARTITION part2 VALUES IN (1) ENGINE = MyISAM, PARTITION part2 VALUES IN (1) ENGINE = MyISAM,
......
...@@ -541,7 +541,7 @@ t1 CREATE TABLE `t1` ( ...@@ -541,7 +541,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
PARTITIONS 5 */ PARTITIONS 5 */
unified filelist unified filelist
...@@ -2487,7 +2487,7 @@ t1 CREATE TABLE `t1` ( ...@@ -2487,7 +2487,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int1) SUBPARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 ENGINE = MyISAM, (SUBPARTITION subpart11 ENGINE = MyISAM,
SUBPARTITION subpart12 ENGINE = MyISAM), SUBPARTITION subpart12 ENGINE = MyISAM),
...@@ -3477,7 +3477,7 @@ t1 CREATE TABLE `t1` ( ...@@ -3477,7 +3477,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2))) /*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2)))
SUBPARTITION BY KEY (f_int1) SUBPARTITION BY KEY ALGORITHM = 2 (f_int1)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION part1 VALUES IN (0) ENGINE = MyISAM, (PARTITION part1 VALUES IN (0) ENGINE = MyISAM,
PARTITION part2 VALUES IN (1) ENGINE = MyISAM, PARTITION part2 VALUES IN (1) ENGINE = MyISAM,
...@@ -4483,7 +4483,7 @@ t1 CREATE TABLE `t1` ( ...@@ -4483,7 +4483,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL, `f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`) UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
PARTITIONS 5 */ PARTITIONS 5 */
unified filelist unified filelist
...@@ -6637,7 +6637,7 @@ t1 CREATE TABLE `t1` ( ...@@ -6637,7 +6637,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`) UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int1) SUBPARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 ENGINE = MyISAM, (SUBPARTITION subpart11 ENGINE = MyISAM,
SUBPARTITION subpart12 ENGINE = MyISAM), SUBPARTITION subpart12 ENGINE = MyISAM),
...@@ -7731,7 +7731,7 @@ t1 CREATE TABLE `t1` ( ...@@ -7731,7 +7731,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`) UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2))) /*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2)))
SUBPARTITION BY KEY (f_int1) SUBPARTITION BY KEY ALGORITHM = 2 (f_int1)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION part1 VALUES IN (0) ENGINE = MyISAM, (PARTITION part1 VALUES IN (0) ENGINE = MyISAM,
PARTITION part2 VALUES IN (1) ENGINE = MyISAM, PARTITION part2 VALUES IN (1) ENGINE = MyISAM,
...@@ -8787,7 +8787,7 @@ t1 CREATE TABLE `t1` ( ...@@ -8787,7 +8787,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL, `f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`) UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
PARTITIONS 5 */ PARTITIONS 5 */
unified filelist unified filelist
...@@ -10941,7 +10941,7 @@ t1 CREATE TABLE `t1` ( ...@@ -10941,7 +10941,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`) UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int1) SUBPARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 ENGINE = MyISAM, (SUBPARTITION subpart11 ENGINE = MyISAM,
SUBPARTITION subpart12 ENGINE = MyISAM), SUBPARTITION subpart12 ENGINE = MyISAM),
...@@ -12035,7 +12035,7 @@ t1 CREATE TABLE `t1` ( ...@@ -12035,7 +12035,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`) UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2))) /*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2)))
SUBPARTITION BY KEY (f_int1) SUBPARTITION BY KEY ALGORITHM = 2 (f_int1)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION part1 VALUES IN (0) ENGINE = MyISAM, (PARTITION part1 VALUES IN (0) ENGINE = MyISAM,
PARTITION part2 VALUES IN (1) ENGINE = MyISAM, PARTITION part2 VALUES IN (1) ENGINE = MyISAM,
...@@ -13043,7 +13043,7 @@ t1 CREATE TABLE `t1` ( ...@@ -13043,7 +13043,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1,f_int2) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1,f_int2)
PARTITIONS 5 */ PARTITIONS 5 */
unified filelist unified filelist
...@@ -14997,7 +14997,7 @@ t1 CREATE TABLE `t1` ( ...@@ -14997,7 +14997,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 ENGINE = MyISAM, (SUBPARTITION subpart11 ENGINE = MyISAM,
SUBPARTITION subpart12 ENGINE = MyISAM), SUBPARTITION subpart12 ENGINE = MyISAM),
...@@ -15993,7 +15993,7 @@ t1 CREATE TABLE `t1` ( ...@@ -15993,7 +15993,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2))) /*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2)))
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION part1 VALUES IN (0) ENGINE = MyISAM, (PARTITION part1 VALUES IN (0) ENGINE = MyISAM,
PARTITION part2 VALUES IN (1) ENGINE = MyISAM, PARTITION part2 VALUES IN (1) ENGINE = MyISAM,
...@@ -17001,7 +17001,7 @@ t1 CREATE TABLE `t1` ( ...@@ -17001,7 +17001,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL, `f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx` (`f_int1`,`f_int2`) UNIQUE KEY `uidx` (`f_int1`,`f_int2`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1,f_int2) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1,f_int2)
PARTITIONS 5 */ PARTITIONS 5 */
unified filelist unified filelist
...@@ -19163,7 +19163,7 @@ t1 CREATE TABLE `t1` ( ...@@ -19163,7 +19163,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx` (`f_int1`,`f_int2`) UNIQUE KEY `uidx` (`f_int1`,`f_int2`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 ENGINE = MyISAM, (SUBPARTITION subpart11 ENGINE = MyISAM,
SUBPARTITION subpart12 ENGINE = MyISAM), SUBPARTITION subpart12 ENGINE = MyISAM),
...@@ -20263,7 +20263,7 @@ t1 CREATE TABLE `t1` ( ...@@ -20263,7 +20263,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx` (`f_int1`,`f_int2`) UNIQUE KEY `uidx` (`f_int1`,`f_int2`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2))) /*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2)))
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION part1 VALUES IN (0) ENGINE = MyISAM, (PARTITION part1 VALUES IN (0) ENGINE = MyISAM,
PARTITION part2 VALUES IN (1) ENGINE = MyISAM, PARTITION part2 VALUES IN (1) ENGINE = MyISAM,
...@@ -21321,7 +21321,7 @@ t1 CREATE TABLE `t1` ( ...@@ -21321,7 +21321,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL, `f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx` (`f_int2`,`f_int1`) UNIQUE KEY `uidx` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1,f_int2) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1,f_int2)
PARTITIONS 5 */ PARTITIONS 5 */
unified filelist unified filelist
...@@ -23483,7 +23483,7 @@ t1 CREATE TABLE `t1` ( ...@@ -23483,7 +23483,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx` (`f_int2`,`f_int1`) UNIQUE KEY `uidx` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 ENGINE = MyISAM, (SUBPARTITION subpart11 ENGINE = MyISAM,
SUBPARTITION subpart12 ENGINE = MyISAM), SUBPARTITION subpart12 ENGINE = MyISAM),
...@@ -24583,7 +24583,7 @@ t1 CREATE TABLE `t1` ( ...@@ -24583,7 +24583,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx` (`f_int2`,`f_int1`) UNIQUE KEY `uidx` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2))) /*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2)))
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION part1 VALUES IN (0) ENGINE = MyISAM, (PARTITION part1 VALUES IN (0) ENGINE = MyISAM,
PARTITION part2 VALUES IN (1) ENGINE = MyISAM, PARTITION part2 VALUES IN (1) ENGINE = MyISAM,
......
...@@ -419,7 +419,7 @@ t1 CREATE TABLE `t1` ( ...@@ -419,7 +419,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) */ /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1) */
t1.frm t1.frm
t1.par t1.par
EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3; EXPLAIN PARTITIONS SELECT COUNT(*) <> 1 FROM t1 WHERE f_int1 = 3;
...@@ -444,7 +444,7 @@ t1 CREATE TABLE `t1` ( ...@@ -444,7 +444,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION p0 ENGINE = InnoDB, (PARTITION p0 ENGINE = InnoDB,
PARTITION part1 ENGINE = InnoDB, PARTITION part1 ENGINE = InnoDB,
PARTITION part7 ENGINE = InnoDB) */ PARTITION part7 ENGINE = InnoDB) */
...@@ -467,7 +467,7 @@ t1 CREATE TABLE `t1` ( ...@@ -467,7 +467,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION p0 ENGINE = InnoDB, (PARTITION p0 ENGINE = InnoDB,
PARTITION part1 ENGINE = InnoDB, PARTITION part1 ENGINE = InnoDB,
PARTITION part7 ENGINE = InnoDB, PARTITION part7 ENGINE = InnoDB,
...@@ -491,7 +491,7 @@ t1 CREATE TABLE `t1` ( ...@@ -491,7 +491,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION p0 ENGINE = InnoDB, (PARTITION p0 ENGINE = InnoDB,
PARTITION part1 ENGINE = InnoDB, PARTITION part1 ENGINE = InnoDB,
PARTITION part7 ENGINE = InnoDB, PARTITION part7 ENGINE = InnoDB,
...@@ -526,7 +526,7 @@ t1 CREATE TABLE `t1` ( ...@@ -526,7 +526,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION p0 ENGINE = InnoDB, (PARTITION p0 ENGINE = InnoDB,
PARTITION part1 ENGINE = InnoDB, PARTITION part1 ENGINE = InnoDB,
PARTITION part7 ENGINE = InnoDB, PARTITION part7 ENGINE = InnoDB,
...@@ -552,7 +552,7 @@ t1 CREATE TABLE `t1` ( ...@@ -552,7 +552,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION p0 ENGINE = InnoDB, (PARTITION p0 ENGINE = InnoDB,
PARTITION part1 ENGINE = InnoDB, PARTITION part1 ENGINE = InnoDB,
PARTITION part7 ENGINE = InnoDB, PARTITION part7 ENGINE = InnoDB,
...@@ -577,7 +577,7 @@ t1 CREATE TABLE `t1` ( ...@@ -577,7 +577,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION p0 ENGINE = InnoDB, (PARTITION p0 ENGINE = InnoDB,
PARTITION part1 ENGINE = InnoDB, PARTITION part1 ENGINE = InnoDB,
PARTITION part7 ENGINE = InnoDB, PARTITION part7 ENGINE = InnoDB,
...@@ -601,7 +601,7 @@ t1 CREATE TABLE `t1` ( ...@@ -601,7 +601,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION p0 ENGINE = InnoDB, (PARTITION p0 ENGINE = InnoDB,
PARTITION part1 ENGINE = InnoDB, PARTITION part1 ENGINE = InnoDB,
PARTITION part7 ENGINE = InnoDB, PARTITION part7 ENGINE = InnoDB,
...@@ -624,7 +624,7 @@ t1 CREATE TABLE `t1` ( ...@@ -624,7 +624,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION p0 ENGINE = InnoDB, (PARTITION p0 ENGINE = InnoDB,
PARTITION part1 ENGINE = InnoDB, PARTITION part1 ENGINE = InnoDB,
PARTITION part7 ENGINE = InnoDB) */ PARTITION part7 ENGINE = InnoDB) */
...@@ -646,7 +646,7 @@ t1 CREATE TABLE `t1` ( ...@@ -646,7 +646,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION p0 ENGINE = InnoDB, (PARTITION p0 ENGINE = InnoDB,
PARTITION part1 ENGINE = InnoDB) */ PARTITION part1 ENGINE = InnoDB) */
t1.frm t1.frm
...@@ -667,7 +667,7 @@ t1 CREATE TABLE `t1` ( ...@@ -667,7 +667,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION p0 ENGINE = InnoDB) */ (PARTITION p0 ENGINE = InnoDB) */
t1.frm t1.frm
t1.par t1.par
......
...@@ -511,7 +511,7 @@ t1 CREATE TABLE `t1` ( ...@@ -511,7 +511,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) */ /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1) */
t1#P#p0.MYD t1#P#p0.MYD
t1#P#p0.MYI t1#P#p0.MYI
t1.frm t1.frm
...@@ -538,7 +538,7 @@ t1 CREATE TABLE `t1` ( ...@@ -538,7 +538,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION p0 ENGINE = MyISAM, (PARTITION p0 ENGINE = MyISAM,
PARTITION part1 ENGINE = MyISAM, PARTITION part1 ENGINE = MyISAM,
PARTITION part7 ENGINE = MyISAM) */ PARTITION part7 ENGINE = MyISAM) */
...@@ -567,7 +567,7 @@ t1 CREATE TABLE `t1` ( ...@@ -567,7 +567,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION p0 ENGINE = MyISAM, (PARTITION p0 ENGINE = MyISAM,
PARTITION part1 ENGINE = MyISAM, PARTITION part1 ENGINE = MyISAM,
PARTITION part7 ENGINE = MyISAM, PARTITION part7 ENGINE = MyISAM,
...@@ -599,7 +599,7 @@ t1 CREATE TABLE `t1` ( ...@@ -599,7 +599,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION p0 ENGINE = MyISAM, (PARTITION p0 ENGINE = MyISAM,
PARTITION part1 ENGINE = MyISAM, PARTITION part1 ENGINE = MyISAM,
PARTITION part7 ENGINE = MyISAM, PARTITION part7 ENGINE = MyISAM,
...@@ -650,7 +650,7 @@ t1 CREATE TABLE `t1` ( ...@@ -650,7 +650,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION p0 ENGINE = MyISAM, (PARTITION p0 ENGINE = MyISAM,
PARTITION part1 ENGINE = MyISAM, PARTITION part1 ENGINE = MyISAM,
PARTITION part7 ENGINE = MyISAM, PARTITION part7 ENGINE = MyISAM,
...@@ -690,7 +690,7 @@ t1 CREATE TABLE `t1` ( ...@@ -690,7 +690,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION p0 ENGINE = MyISAM, (PARTITION p0 ENGINE = MyISAM,
PARTITION part1 ENGINE = MyISAM, PARTITION part1 ENGINE = MyISAM,
PARTITION part7 ENGINE = MyISAM, PARTITION part7 ENGINE = MyISAM,
...@@ -727,7 +727,7 @@ t1 CREATE TABLE `t1` ( ...@@ -727,7 +727,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION p0 ENGINE = MyISAM, (PARTITION p0 ENGINE = MyISAM,
PARTITION part1 ENGINE = MyISAM, PARTITION part1 ENGINE = MyISAM,
PARTITION part7 ENGINE = MyISAM, PARTITION part7 ENGINE = MyISAM,
...@@ -761,7 +761,7 @@ t1 CREATE TABLE `t1` ( ...@@ -761,7 +761,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION p0 ENGINE = MyISAM, (PARTITION p0 ENGINE = MyISAM,
PARTITION part1 ENGINE = MyISAM, PARTITION part1 ENGINE = MyISAM,
PARTITION part7 ENGINE = MyISAM, PARTITION part7 ENGINE = MyISAM,
...@@ -792,7 +792,7 @@ t1 CREATE TABLE `t1` ( ...@@ -792,7 +792,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION p0 ENGINE = MyISAM, (PARTITION p0 ENGINE = MyISAM,
PARTITION part1 ENGINE = MyISAM, PARTITION part1 ENGINE = MyISAM,
PARTITION part7 ENGINE = MyISAM) */ PARTITION part7 ENGINE = MyISAM) */
...@@ -820,7 +820,7 @@ t1 CREATE TABLE `t1` ( ...@@ -820,7 +820,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION p0 ENGINE = MyISAM, (PARTITION p0 ENGINE = MyISAM,
PARTITION part1 ENGINE = MyISAM) */ PARTITION part1 ENGINE = MyISAM) */
t1#P#p0.MYD t1#P#p0.MYD
...@@ -845,7 +845,7 @@ t1 CREATE TABLE `t1` ( ...@@ -845,7 +845,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION p0 ENGINE = MyISAM) */ (PARTITION p0 ENGINE = MyISAM) */
t1#P#p0.MYD t1#P#p0.MYD
t1#P#p0.MYI t1#P#p0.MYI
......
...@@ -533,7 +533,7 @@ t1 CREATE TABLE `t1` ( ...@@ -533,7 +533,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
PARTITIONS 5 */ PARTITIONS 5 */
unified filelist unified filelist
...@@ -2453,7 +2453,7 @@ t1 CREATE TABLE `t1` ( ...@@ -2453,7 +2453,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int1) SUBPARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 ENGINE = MyISAM, (SUBPARTITION subpart11 ENGINE = MyISAM,
SUBPARTITION subpart12 ENGINE = MyISAM), SUBPARTITION subpart12 ENGINE = MyISAM),
...@@ -3435,7 +3435,7 @@ t1 CREATE TABLE `t1` ( ...@@ -3435,7 +3435,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2))) /*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2)))
SUBPARTITION BY KEY (f_int1) SUBPARTITION BY KEY ALGORITHM = 2 (f_int1)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION part1 VALUES IN (0) ENGINE = MyISAM, (PARTITION part1 VALUES IN (0) ENGINE = MyISAM,
PARTITION part2 VALUES IN (1) ENGINE = MyISAM, PARTITION part2 VALUES IN (1) ENGINE = MyISAM,
...@@ -4374,7 +4374,7 @@ t1 CREATE TABLE `t1` ( ...@@ -4374,7 +4374,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1,f_int2) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1,f_int2)
PARTITIONS 5 */ PARTITIONS 5 */
unified filelist unified filelist
...@@ -6292,7 +6292,7 @@ t1 CREATE TABLE `t1` ( ...@@ -6292,7 +6292,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 ENGINE = MyISAM, (SUBPARTITION subpart11 ENGINE = MyISAM,
SUBPARTITION subpart12 ENGINE = MyISAM), SUBPARTITION subpart12 ENGINE = MyISAM),
...@@ -7270,7 +7270,7 @@ t1 CREATE TABLE `t1` ( ...@@ -7270,7 +7270,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2))) /*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2)))
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION part1 VALUES IN (0) ENGINE = MyISAM, (PARTITION part1 VALUES IN (0) ENGINE = MyISAM,
PARTITION part2 VALUES IN (1) ENGINE = MyISAM, PARTITION part2 VALUES IN (1) ENGINE = MyISAM,
...@@ -8268,7 +8268,7 @@ t1 CREATE TABLE `t1` ( ...@@ -8268,7 +8268,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`), UNIQUE KEY `uidx1` (`f_int1`,`f_int2`),
UNIQUE KEY `uidx2` (`f_int2`,`f_int1`) UNIQUE KEY `uidx2` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
PARTITIONS 5 */ PARTITIONS 5 */
unified filelist unified filelist
...@@ -10400,7 +10400,7 @@ t1 CREATE TABLE `t1` ( ...@@ -10400,7 +10400,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx2` (`f_int2`,`f_int1`) UNIQUE KEY `uidx2` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int1) SUBPARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 ENGINE = MyISAM, (SUBPARTITION subpart11 ENGINE = MyISAM,
SUBPARTITION subpart12 ENGINE = MyISAM), SUBPARTITION subpart12 ENGINE = MyISAM),
...@@ -11488,7 +11488,7 @@ t1 CREATE TABLE `t1` ( ...@@ -11488,7 +11488,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx2` (`f_int2`,`f_int1`) UNIQUE KEY `uidx2` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2))) /*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2)))
SUBPARTITION BY KEY (f_int1) SUBPARTITION BY KEY ALGORITHM = 2 (f_int1)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION part1 VALUES IN (0) ENGINE = MyISAM, (PARTITION part1 VALUES IN (0) ENGINE = MyISAM,
PARTITION part2 VALUES IN (1) ENGINE = MyISAM, PARTITION part2 VALUES IN (1) ENGINE = MyISAM,
...@@ -12537,7 +12537,7 @@ t1 CREATE TABLE `t1` ( ...@@ -12537,7 +12537,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`), UNIQUE KEY `uidx1` (`f_int1`,`f_int2`),
UNIQUE KEY `uidx2` (`f_int2`,`f_int1`) UNIQUE KEY `uidx2` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1,f_int2) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1,f_int2)
PARTITIONS 5 */ PARTITIONS 5 */
unified filelist unified filelist
...@@ -14667,7 +14667,7 @@ t1 CREATE TABLE `t1` ( ...@@ -14667,7 +14667,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx2` (`f_int2`,`f_int1`) UNIQUE KEY `uidx2` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 ENGINE = MyISAM, (SUBPARTITION subpart11 ENGINE = MyISAM,
SUBPARTITION subpart12 ENGINE = MyISAM), SUBPARTITION subpart12 ENGINE = MyISAM),
...@@ -15751,7 +15751,7 @@ t1 CREATE TABLE `t1` ( ...@@ -15751,7 +15751,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx2` (`f_int2`,`f_int1`) UNIQUE KEY `uidx2` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2))) /*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2)))
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION part1 VALUES IN (0) ENGINE = MyISAM, (PARTITION part1 VALUES IN (0) ENGINE = MyISAM,
PARTITION part2 VALUES IN (1) ENGINE = MyISAM, PARTITION part2 VALUES IN (1) ENGINE = MyISAM,
......
...@@ -563,7 +563,7 @@ t1 CREATE TABLE `t1` ( ...@@ -563,7 +563,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION p1 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM, (PARTITION p1 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM,
PARTITION p2 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM, PARTITION p2 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM,
PARTITION p3 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM, PARTITION p3 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM,
...@@ -2573,7 +2573,7 @@ t1 CREATE TABLE `t1` ( ...@@ -2573,7 +2573,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int1) SUBPARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM, (SUBPARTITION subpart11 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM,
SUBPARTITION subpart12 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM), SUBPARTITION subpart12 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM),
...@@ -3613,7 +3613,7 @@ t1 CREATE TABLE `t1` ( ...@@ -3613,7 +3613,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2))) /*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2)))
SUBPARTITION BY KEY (f_int1) SUBPARTITION BY KEY ALGORITHM = 2 (f_int1)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION part1 VALUES IN (0) DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM, (PARTITION part1 VALUES IN (0) DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM,
PARTITION part2 VALUES IN (1) DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM, PARTITION part2 VALUES IN (1) DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM,
...@@ -4596,7 +4596,7 @@ t1 CREATE TABLE `t1` ( ...@@ -4596,7 +4596,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL, `f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1,f_int2) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1,f_int2)
(PARTITION p1 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM, (PARTITION p1 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM,
PARTITION p2 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM, PARTITION p2 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM,
PARTITION p3 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM, PARTITION p3 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM,
...@@ -6604,7 +6604,7 @@ t1 CREATE TABLE `t1` ( ...@@ -6604,7 +6604,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM, (SUBPARTITION subpart11 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM,
SUBPARTITION subpart12 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM), SUBPARTITION subpart12 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM),
...@@ -7644,7 +7644,7 @@ t1 CREATE TABLE `t1` ( ...@@ -7644,7 +7644,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL `f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2))) /*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2)))
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION part1 VALUES IN (0) DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM, (PARTITION part1 VALUES IN (0) DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM,
PARTITION part2 VALUES IN (1) DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM, PARTITION part2 VALUES IN (1) DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM,
...@@ -8686,7 +8686,7 @@ t1 CREATE TABLE `t1` ( ...@@ -8686,7 +8686,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`), UNIQUE KEY `uidx1` (`f_int1`,`f_int2`),
UNIQUE KEY `uidx2` (`f_int2`,`f_int1`) UNIQUE KEY `uidx2` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION p1 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM, (PARTITION p1 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM,
PARTITION p2 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM, PARTITION p2 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM,
PARTITION p3 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM, PARTITION p3 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM,
...@@ -10908,7 +10908,7 @@ t1 CREATE TABLE `t1` ( ...@@ -10908,7 +10908,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx2` (`f_int2`,`f_int1`) UNIQUE KEY `uidx2` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int1) SUBPARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM, (SUBPARTITION subpart11 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM,
SUBPARTITION subpart12 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM), SUBPARTITION subpart12 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM),
...@@ -12054,7 +12054,7 @@ t1 CREATE TABLE `t1` ( ...@@ -12054,7 +12054,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx2` (`f_int2`,`f_int1`) UNIQUE KEY `uidx2` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2))) /*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2)))
SUBPARTITION BY KEY (f_int1) SUBPARTITION BY KEY ALGORITHM = 2 (f_int1)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION part1 VALUES IN (0) DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM, (PARTITION part1 VALUES IN (0) DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM,
PARTITION part2 VALUES IN (1) DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM, PARTITION part2 VALUES IN (1) DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM,
...@@ -13147,7 +13147,7 @@ t1 CREATE TABLE `t1` ( ...@@ -13147,7 +13147,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`), UNIQUE KEY `uidx1` (`f_int1`,`f_int2`),
UNIQUE KEY `uidx2` (`f_int2`,`f_int1`) UNIQUE KEY `uidx2` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (f_int1,f_int2) /*!50100 PARTITION BY KEY ALGORITHM = 2 (f_int1,f_int2)
(PARTITION p1 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM, (PARTITION p1 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM,
PARTITION p2 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM, PARTITION p2 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM,
PARTITION p3 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM, PARTITION p3 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM,
...@@ -15367,7 +15367,7 @@ t1 CREATE TABLE `t1` ( ...@@ -15367,7 +15367,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx2` (`f_int2`,`f_int1`) UNIQUE KEY `uidx2` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM, (SUBPARTITION subpart11 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM,
SUBPARTITION subpart12 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM), SUBPARTITION subpart12 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM),
...@@ -16513,7 +16513,7 @@ t1 CREATE TABLE `t1` ( ...@@ -16513,7 +16513,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx2` (`f_int2`,`f_int1`) UNIQUE KEY `uidx2` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2))) /*!50100 PARTITION BY LIST (ABS(MOD(f_int1,2)))
SUBPARTITION BY KEY (f_int2) SUBPARTITION BY KEY ALGORITHM = 2 (f_int2)
SUBPARTITIONS 3 SUBPARTITIONS 3
(PARTITION part1 VALUES IN (0) DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM, (PARTITION part1 VALUES IN (0) DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM,
PARTITION part2 VALUES IN (1) DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM, PARTITION part2 VALUES IN (1) DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' INDEX DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-idx-dir' ENGINE = MyISAM,
...@@ -19782,7 +19782,7 @@ t1 CREATE TABLE `t1` ( ...@@ -19782,7 +19782,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx2` (`f_int2`,`f_int1`) UNIQUE KEY `uidx2` (`f_int2`,`f_int1`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (f_int1) /*!50100 PARTITION BY RANGE (f_int1)
SUBPARTITION BY KEY (f_int1) SUBPARTITION BY KEY ALGORITHM = 2 (f_int1)
(PARTITION part1 VALUES LESS THAN (0) (PARTITION part1 VALUES LESS THAN (0)
(SUBPARTITION subpart11 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' ENGINE = MyISAM, (SUBPARTITION subpart11 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' ENGINE = MyISAM,
SUBPARTITION subpart12 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' ENGINE = MyISAM), SUBPARTITION subpart12 DATA DIRECTORY = 'MYSQLTEST_VARDIR/mysql-test-data-dir' ENGINE = MyISAM),
......
...@@ -10,7 +10,7 @@ t1 CREATE TABLE `t1` ( ...@@ -10,7 +10,7 @@ t1 CREATE TABLE `t1` (
`a` decimal(10,4) NOT NULL, `a` decimal(10,4) NOT NULL,
PRIMARY KEY (`a`) PRIMARY KEY (`a`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (a) /*!50100 PARTITION BY KEY ALGORITHM = 2 (a)
(PARTITION pa1 MAX_ROWS = 20 MIN_ROWS = 2 ENGINE = InnoDB, (PARTITION pa1 MAX_ROWS = 20 MIN_ROWS = 2 ENGINE = InnoDB,
PARTITION pa2 MAX_ROWS = 30 MIN_ROWS = 3 ENGINE = InnoDB, PARTITION pa2 MAX_ROWS = 30 MIN_ROWS = 3 ENGINE = InnoDB,
PARTITION pa3 MAX_ROWS = 30 MIN_ROWS = 4 ENGINE = InnoDB, PARTITION pa3 MAX_ROWS = 30 MIN_ROWS = 4 ENGINE = InnoDB,
...@@ -54,7 +54,7 @@ t2 CREATE TABLE `t2` ( ...@@ -54,7 +54,7 @@ t2 CREATE TABLE `t2` (
`a` decimal(18,9) NOT NULL, `a` decimal(18,9) NOT NULL,
PRIMARY KEY (`a`) PRIMARY KEY (`a`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (a) /*!50100 PARTITION BY KEY ALGORITHM = 2 (a)
PARTITIONS 10 */ PARTITIONS 10 */
insert into t2 values (999999999.999999999), (-999999999.999999999), (-1.5), (-1), (0), (1.5), (1234.567), (-1234.567); insert into t2 values (999999999.999999999), (-999999999.999999999), (-1.5), (-1), (0), (1.5), (1234.567), (-1234.567);
select * from t2; select * from t2;
...@@ -101,7 +101,7 @@ t3 CREATE TABLE `t3` ( ...@@ -101,7 +101,7 @@ t3 CREATE TABLE `t3` (
PRIMARY KEY (`a`) PRIMARY KEY (`a`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (floor(a)) /*!50100 PARTITION BY RANGE (floor(a))
SUBPARTITION BY KEY (a) SUBPARTITION BY KEY ALGORITHM = 2 (a)
SUBPARTITIONS 2 SUBPARTITIONS 2
(PARTITION pa2 VALUES LESS THAN (2) ENGINE = InnoDB, (PARTITION pa2 VALUES LESS THAN (2) ENGINE = InnoDB,
PARTITION pa4 VALUES LESS THAN (4) ENGINE = InnoDB, PARTITION pa4 VALUES LESS THAN (4) ENGINE = InnoDB,
...@@ -155,7 +155,7 @@ t4 CREATE TABLE `t4` ( ...@@ -155,7 +155,7 @@ t4 CREATE TABLE `t4` (
PRIMARY KEY (`a`) PRIMARY KEY (`a`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (ceiling(a)) /*!50100 PARTITION BY LIST (ceiling(a))
SUBPARTITION BY KEY (a) SUBPARTITION BY KEY ALGORITHM = 2 (a)
SUBPARTITIONS 2 SUBPARTITIONS 2
(PARTITION pa2 VALUES IN (1,2) ENGINE = InnoDB, (PARTITION pa2 VALUES IN (1,2) ENGINE = InnoDB,
PARTITION pa4 VALUES IN (3,4) ENGINE = InnoDB, PARTITION pa4 VALUES IN (3,4) ENGINE = InnoDB,
......
...@@ -550,7 +550,7 @@ t16 CREATE TABLE `t16` ( ...@@ -550,7 +550,7 @@ t16 CREATE TABLE `t16` (
`c5` char(5) DEFAULT NULL, `c5` char(5) DEFAULT NULL,
PRIMARY KEY (`c1`) PRIMARY KEY (`c1`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (c1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (c1)
PARTITIONS 4 */ PARTITIONS 4 */
*** Show table on Slave **** *** Show table on Slave ****
SHOW CREATE TABLE t16; SHOW CREATE TABLE t16;
...@@ -565,7 +565,7 @@ t16 CREATE TABLE `t16` ( ...@@ -565,7 +565,7 @@ t16 CREATE TABLE `t16` (
`c7` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `c7` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`c1`) PRIMARY KEY (`c1`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (c1) /*!50100 PARTITION BY KEY ALGORITHM = 2 (c1)
PARTITIONS 4 */ PARTITIONS 4 */
*** DROP TABLE t16 *** *** DROP TABLE t16 ***
DROP TABLE t16; DROP TABLE t16;
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment