| 1 |
--- create_table.result |
| 2 |
+++ create_table.reject |
| 3 |
@@ -1,91 +1,79 @@ |
| 4 |
DROP TABLE IF EXISTS t1; |
| 5 |
CREATE TABLE t1 (a <INT_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> PARTITION BY HASH(a) PARTITIONS 2; |
| 6 |
-INSERT INTO t1 (a) VALUES (1),(2),(3),(2); |
| 7 |
-EXPLAIN PARTITIONS SELECT a FROM t1; |
| 8 |
-id select_type table partitions type possible_keys key key_len ref rows Extra |
| 9 |
-1 SIMPLE t1 p0,p1 # # # # # # # |
| 10 |
-EXPLAIN PARTITIONS SELECT a FROM t1 WHERE a=2; |
| 11 |
-id select_type table partitions type possible_keys key key_len ref rows Extra |
| 12 |
-1 SIMPLE t1 p0 # # # # # # # |
| 13 |
-DROP TABLE t1; |
| 14 |
+ERROR HY000: Engine cannot be used in partitioned tables |
| 15 |
+# ERROR: Statement ended with errno 1572, errname ER_PARTITION_MERGE_ERROR (expected to succeed) |
| 16 |
+# ------------ UNEXPECTED RESULT ------------ |
| 17 |
+# [ CREATE TABLE t1 (a INT(11) /*!*/ /*Custom column options*/) ENGINE=MRG_MYISAM /*!*/ /*Custom table options*/ UNION(mrg.t1) INSERT_METHOD=LAST PARTITION BY HASH(a) PARTITIONS 2 ] |
| 18 |
+# The statement|command finished with ER_PARTITION_MERGE_ERROR. |
| 19 |
+# Partitions or the mix could be unsupported|malfunctioning, or the problem was caused by previous errors. |
| 20 |
+# You can change the engine code, or create an rdiff, or disable the test by adding it to disabled.def. |
| 21 |
+# Further in this test, the message might sometimes be suppressed; a part of the test might be skipped. |
| 22 |
+# Also, this problem may cause a chain effect (more errors of different kinds in the test). |
| 23 |
+# ------------------------------------------- |
| 24 |
CREATE TABLE t1 (a <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> PARTITION BY KEY(a) PARTITIONS 2; |
| 25 |
-INSERT INTO t1 (a) VALUES ('a'),('b'),('c'); |
| 26 |
-EXPLAIN PARTITIONS SELECT a FROM t1; |
| 27 |
-id select_type table partitions type possible_keys key key_len ref rows Extra |
| 28 |
-1 SIMPLE t1 p0,p1 # # # # # # # |
| 29 |
-EXPLAIN PARTITIONS SELECT a FROM t1 WHERE a = 'b'; |
| 30 |
-id select_type table partitions type possible_keys key key_len ref rows Extra |
| 31 |
-1 SIMPLE t1 p1 # # # # # # # |
| 32 |
-DROP TABLE t1; |
| 33 |
+ERROR HY000: Engine cannot be used in partitioned tables |
| 34 |
+# ERROR: Statement ended with errno 1572, errname ER_PARTITION_MERGE_ERROR (expected to succeed) |
| 35 |
+# ------------ UNEXPECTED RESULT ------------ |
| 36 |
+# [ CREATE TABLE t1 (a CHAR(8) /*!*/ /*Custom column options*/) ENGINE=MRG_MYISAM /*!*/ /*Custom table options*/ UNION(mrg.t1) INSERT_METHOD=LAST PARTITION BY KEY(a) PARTITIONS 2 ] |
| 37 |
+# The statement|command finished with ER_PARTITION_MERGE_ERROR. |
| 38 |
+# Partitions or CHAR types or the mix could be unsupported|malfunctioning, or the problem was caused by previous errors. |
| 39 |
+# You can change the engine code, or create an rdiff, or disable the test by adding it to disabled.def. |
| 40 |
+# Further in this test, the message might sometimes be suppressed; a part of the test might be skipped. |
| 41 |
+# Also, this problem may cause a chain effect (more errors of different kinds in the test). |
| 42 |
+# ------------------------------------------- |
| 43 |
CREATE TABLE t1 (a <INT_COLUMN>, <CUSTOM_INDEX> (a)) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> PARTITION BY KEY(a) PARTITIONS 2; |
| 44 |
-SHOW INDEX IN t1; |
| 45 |
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment |
| 46 |
-t1 1 a 1 a # # NULL NULL # # |
| 47 |
-INSERT INTO t1 (a) VALUES (1),(2),(3),(5); |
| 48 |
-EXPLAIN PARTITIONS SELECT a FROM t1; |
| 49 |
-id select_type table partitions type possible_keys key key_len ref rows Extra |
| 50 |
-1 SIMPLE t1 p0,p1 # # # # # # # |
| 51 |
-EXPLAIN PARTITIONS SELECT a FROM t1 WHERE a IN (1,3); |
| 52 |
-id select_type table partitions type possible_keys key key_len ref rows Extra |
| 53 |
-1 SIMPLE t1 p0 # # # # # # # |
| 54 |
-DROP TABLE t1; |
| 55 |
+ERROR HY000: Engine cannot be used in partitioned tables |
| 56 |
+# ERROR: Statement ended with errno 1572, errname ER_PARTITION_MERGE_ERROR (expected to succeed) |
| 57 |
+# ------------ UNEXPECTED RESULT ------------ |
| 58 |
+# [ CREATE TABLE t1 (a INT(11) /*!*/ /*Custom indexed column options*/, /*!INDEX*/ /*Custom index*/ (a)) ENGINE=MRG_MYISAM /*!*/ /*Custom table options*/ UNION(mrg.t1) INSERT_METHOD=LAST PARTITION BY KEY(a) PARTITIONS 2 ] |
| 59 |
+# The statement|command finished with ER_PARTITION_MERGE_ERROR. |
| 60 |
+# Partitions or indexes or the mix could be unsupported|malfunctioning, or the problem was caused by previous errors. |
| 61 |
+# You can change the engine code, or create an rdiff, or disable the test by adding it to disabled.def. |
| 62 |
+# Further in this test, the message might sometimes be suppressed; a part of the test might be skipped. |
| 63 |
+# Also, this problem may cause a chain effect (more errors of different kinds in the test). |
| 64 |
+# ------------------------------------------- |
| 65 |
CREATE TABLE t1 (a <INT_COLUMN> PRIMARY KEY) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> PARTITION BY KEY() PARTITIONS 2; |
| 66 |
-SHOW INDEX IN t1; |
| 67 |
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment |
| 68 |
-t1 0 PRIMARY 1 a # # NULL NULL # # |
| 69 |
-INSERT INTO t1 (a) VALUES (1),(200),(3),(2); |
| 70 |
-EXPLAIN PARTITIONS SELECT a FROM t1; |
| 71 |
-id select_type table partitions type possible_keys key key_len ref rows Extra |
| 72 |
-1 SIMPLE t1 p0,p1 # # # # # # # |
| 73 |
-EXPLAIN PARTITIONS SELECT a FROM t1 WHERE a=2; |
| 74 |
-id select_type table partitions type possible_keys key key_len ref rows Extra |
| 75 |
-1 SIMPLE t1 p1 # # # # # # # |
| 76 |
-DROP TABLE t1; |
| 77 |
+ERROR HY000: Engine cannot be used in partitioned tables |
| 78 |
+# ERROR: Statement ended with errno 1572, errname ER_PARTITION_MERGE_ERROR (expected to succeed) |
| 79 |
+# ------------ UNEXPECTED RESULT ------------ |
| 80 |
+# [ CREATE TABLE t1 (a INT(11) /*!*/ /*Custom indexed column options*/ PRIMARY KEY) ENGINE=MRG_MYISAM /*!*/ /*Custom table options*/ UNION(mrg.t1) INSERT_METHOD=LAST PARTITION BY KEY() PARTITIONS 2 ] |
| 81 |
+# The statement|command finished with ER_PARTITION_MERGE_ERROR. |
| 82 |
+# PK or the mix could be unsupported|malfunctioning, or the problem was caused by previous errors. |
| 83 |
+# You can change the engine code, or create an rdiff, or disable the test by adding it to disabled.def. |
| 84 |
+# Further in this test, the message might sometimes be suppressed; a part of the test might be skipped. |
| 85 |
+# Also, this problem may cause a chain effect (more errors of different kinds in the test). |
| 86 |
+# ------------------------------------------- |
| 87 |
CREATE TABLE t1 (a <INT_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> PARTITION BY RANGE(a) ( |
| 88 |
PARTITION p0 VALUES LESS THAN (10), |
| 89 |
PARTITION p1 VALUES LESS THAN (1000) |
| 90 |
); |
| 91 |
-INSERT INTO t1 (a) VALUES (1),(2),(400); |
| 92 |
-EXPLAIN PARTITIONS SELECT a FROM t1; |
| 93 |
-id select_type table partitions type possible_keys key key_len ref rows Extra |
| 94 |
-1 SIMPLE t1 p0,p1 # # # # # # # |
| 95 |
-EXPLAIN PARTITIONS SELECT a FROM t1 WHERE a = 2; |
| 96 |
-id select_type table partitions type possible_keys key key_len ref rows Extra |
| 97 |
-1 SIMPLE t1 p0 # # # # # # # |
| 98 |
-INSERT INTO t1 (a) VALUES (10000); |
| 99 |
-ERROR HY000: Table has no partition for value 10000 |
| 100 |
-DROP TABLE t1; |
| 101 |
-CREATE TABLE t1 (a <INT_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> PARTITION BY LIST(a) ( |
| 102 |
+ERROR HY000: Engine cannot be used in partitioned tables |
| 103 |
+# ERROR: Statement ended with errno 1572, errname ER_PARTITION_MERGE_ERROR (expected to succeed) |
| 104 |
+# ------------ UNEXPECTED RESULT ------------ |
| 105 |
+# [ CREATE TABLE t1 (a INT(11) /*!*/ /*Custom column options*/) ENGINE=MRG_MYISAM /*!*/ /*Custom table options*/ UNION(mrg.t1) INSERT_METHOD=LAST PARTITION BY RANGE(a) ( |
| 106 |
+PARTITION p0 VALUES LESS THAN (10), |
| 107 |
+PARTITION p1 VALUES LESS THAN (1000) |
| 108 |
+) ] |
| 109 |
+# The statement|command finished with ER_PARTITION_MERGE_ERROR. |
| 110 |
+# Partitions or the mix could be unsupported|malfunctioning, or the problem was caused by previous errors. |
| 111 |
+# You can change the engine code, or create an rdiff, or disable the test by adding it to disabled.def. |
| 112 |
+# Further in this test, the message might sometimes be suppressed; a part of the test might be skipped. |
| 113 |
+# Also, this problem may cause a chain effect (more errors of different kinds in the test). |
| 114 |
+# ------------------------------------------- |
| 115 |
+CREATE TABLE t1 (a <INT_COLUMN>, b <INT_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> PARTITION BY LIST(a) SUBPARTITION by HASH(b) ( |
| 116 |
PARTITION abc VALUES IN (1,2,3), |
| 117 |
PARTITION def VALUES IN (100,101,102) |
| 118 |
); |
| 119 |
-INSERT INTO t1 (a) VALUES (1),(101),(1); |
| 120 |
-EXPLAIN PARTITIONS SELECT a FROM t1; |
| 121 |
-id select_type table partitions type possible_keys key key_len ref rows Extra |
| 122 |
-1 SIMPLE t1 abc,def # # # # # # # |
| 123 |
-EXPLAIN PARTITIONS SELECT a FROM t1 WHERE a = 100; |
| 124 |
-id select_type table partitions type possible_keys key key_len ref rows Extra |
| 125 |
-1 SIMPLE NULL NULL # # # # # # # |
| 126 |
-INSERT INTO t1 (a) VALUES (50); |
| 127 |
-ERROR HY000: Table has no partition for value 50 |
| 128 |
-DROP TABLE t1; |
| 129 |
-CREATE TABLE t1 (a <INT_COLUMN>, b <INT_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> PARTITION BY LIST(a) SUBPARTITION by HASH(b) ( |
| 130 |
+ERROR HY000: Engine cannot be used in partitioned tables |
| 131 |
+# ERROR: Statement ended with errno 1572, errname ER_PARTITION_MERGE_ERROR (expected to succeed) |
| 132 |
+# ------------ UNEXPECTED RESULT ------------ |
| 133 |
+# [ CREATE TABLE t1 (a INT(11) /*!*/ /*Custom column options*/, b INT(11) /*!*/ /*Custom column options*/) ENGINE=MRG_MYISAM /*!*/ /*Custom table options*/ UNION(mrg.t1) INSERT_METHOD=LAST PARTITION BY LIST(a) SUBPARTITION by HASH(b) ( |
| 134 |
PARTITION abc VALUES IN (1,2,3), |
| 135 |
PARTITION def VALUES IN (100,101,102) |
| 136 |
-); |
| 137 |
-SHOW INDEX IN t1; |
| 138 |
-Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment |
| 139 |
-INSERT INTO t1 (a,b) VALUES (1,1),(101,2),(1,3); |
| 140 |
-EXPLAIN PARTITIONS SELECT a FROM t1; |
| 141 |
-id select_type table partitions type possible_keys key key_len ref rows Extra |
| 142 |
-1 SIMPLE t1 abc_abcsp0,def_defsp0 # # # # # # # |
| 143 |
-EXPLAIN PARTITIONS SELECT a FROM t1 WHERE a = 100; |
| 144 |
-id select_type table partitions type possible_keys key key_len ref rows Extra |
| 145 |
-1 SIMPLE NULL NULL # # # # # # # |
| 146 |
-SELECT TABLE_SCHEMA, TABLE_NAME, PARTITION_NAME, SUBPARTITION_NAME, PARTITION_METHOD, SUBPARTITION_METHOD |
| 147 |
-FROM INFORMATION_SCHEMA.PARTITIONS WHERE TABLE_NAME = 't1'; |
| 148 |
-TABLE_SCHEMA TABLE_NAME PARTITION_NAME SUBPARTITION_NAME PARTITION_METHOD SUBPARTITION_METHOD |
| 149 |
-test t1 abc abcsp0 LIST HASH |
| 150 |
-test t1 def defsp0 LIST HASH |
| 151 |
-SELECT * FROM INFORMATION_SCHEMA.PARTITIONS; |
| 152 |
-DROP TABLE t1; |
| 153 |
+) ] |
| 154 |
+# The statement|command finished with ER_PARTITION_MERGE_ERROR. |
| 155 |
+# Partitions or subpartitions or the mix could be unsupported|malfunctioning, or the problem was caused by previous errors. |
| 156 |
+# You can change the engine code, or create an rdiff, or disable the test by adding it to disabled.def. |
| 157 |
+# Further in this test, the message might sometimes be suppressed; a part of the test might be skipped. |
| 158 |
+# Also, this problem may cause a chain effect (more errors of different kinds in the test). |
| 159 |
+# ------------------------------------------- |