| 1 |
--- analyze_table.result |
| 2 |
+++ analyze_table.reject |
| 3 |
@@ -1,47 +1,62 @@ |
| 4 |
DROP TABLE IF EXISTS t1,t2; |
| 5 |
CREATE TABLE t1 (a <INT_COLUMN>, b <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> PARTITION BY HASH(a) PARTITIONS 2; |
| 6 |
-INSERT INTO t1 (a,b) VALUES (1,'a'),(2,'b'),(3,'c'),(2,'d'),(4,'e'),(100,'f'),(101,'g'); |
| 7 |
-CREATE TABLE t2 (a <INT_COLUMN>, b <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>; |
| 8 |
-INSERT INTO t2 (a,b) SELECT a,b FROM t1; |
| 9 |
-INSERT INTO t1 (a,b) VALUES (3,'c'); |
| 10 |
-ALTER TABLE t1 ANALYZE PARTITION p0; |
| 11 |
-Table Op Msg_type Msg_text |
| 12 |
-test.t1 analyze status OK |
| 13 |
-INSERT INTO t2 (a,b) VALUES (4,'d'), (1000,'e'); |
| 14 |
-ALTER TABLE t1 ANALYZE PARTITION LOCAL ALL; |
| 15 |
-Table Op Msg_type Msg_text |
| 16 |
-test.t1 analyze status OK |
| 17 |
-INSERT INTO t1 (a,b) VALUES (5,'f'),(50,'g'); |
| 18 |
-ALTER TABLE t1 ANALYZE PARTITION NO_WRITE_TO_BINLOG p1,p0; |
| 19 |
-Table Op Msg_type Msg_text |
| 20 |
-test.t1 analyze status OK |
| 21 |
-DROP TABLE t1, t2; |
| 22 |
+ERROR HY000: Engine cannot be used in partitioned tables |
| 23 |
+# ERROR: Statement ended with errno 1572, errname ER_PARTITION_MERGE_ERROR (expected to succeed) |
| 24 |
+# ------------ UNEXPECTED RESULT ------------ |
| 25 |
+# [ CREATE TABLE t1 (a INT(11) /*!*/ /*Custom column options*/, b CHAR(8) /*!*/ /*Custom column options*/) ENGINE=MRG_MYISAM /*!*/ /*Custom table options*/ UNION(mrg.t1) INSERT_METHOD=LAST PARTITION BY HASH(a) PARTITIONS 2 ] |
| 26 |
+# The statement|command finished with ER_PARTITION_MERGE_ERROR. |
| 27 |
+# Partitions or the mix could be unsupported|malfunctioning, or the problem was caused by previous errors. |
| 28 |
+# You can change the engine code, or create an rdiff, or disable the test by adding it to disabled.def. |
| 29 |
+# Further in this test, the message might sometimes be suppressed; a part of the test might be skipped. |
| 30 |
+# Also, this problem may cause a chain effect (more errors of different kinds in the test). |
| 31 |
+# ------------------------------------------- |
| 32 |
DROP TABLE IF EXISTS t1,t2; |
| 33 |
CREATE TABLE t1 (a <INT_COLUMN>, b <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> PARTITION BY HASH(a) PARTITIONS 2; |
| 34 |
+ERROR HY000: Engine cannot be used in partitioned tables |
| 35 |
+# ERROR: Statement ended with errno 1572, errname ER_PARTITION_MERGE_ERROR (expected to succeed) |
| 36 |
INSERT INTO t1 (a,b) VALUES (1,'a'),(2,'b'); |
| 37 |
+ERROR 42S02: Table 'test.t1' doesn't exist |
| 38 |
CREATE TABLE t2 (a <INT_COLUMN>, b <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> PARTITION BY HASH(a) PARTITIONS 2; |
| 39 |
+ERROR HY000: Engine cannot be used in partitioned tables |
| 40 |
+# ERROR: Statement ended with errno 1572, errname ER_PARTITION_MERGE_ERROR (expected to succeed) |
| 41 |
INSERT INTO t1 (a,b) VALUES (3,'c'); |
| 42 |
+ERROR 42S02: Table 'test.t1' doesn't exist |
| 43 |
ANALYZE TABLE t1; |
| 44 |
Table Op Msg_type Msg_text |
| 45 |
-test.t1 analyze status OK |
| 46 |
+test.t1 analyze Error Table 'test.t1' doesn't exist |
| 47 |
+test.t1 analyze status Operation failed |
| 48 |
INSERT INTO t2 (a,b) VALUES (4,'d'); |
| 49 |
+ERROR 42S02: Table 'test.t2' doesn't exist |
| 50 |
ANALYZE NO_WRITE_TO_BINLOG TABLE t2; |
| 51 |
Table Op Msg_type Msg_text |
| 52 |
-test.t2 analyze status OK |
| 53 |
+test.t2 analyze Error Table 'test.t2' doesn't exist |
| 54 |
+test.t2 analyze status Operation failed |
| 55 |
INSERT INTO t1 (a,b) VALUES (5,'e'); |
| 56 |
+ERROR 42S02: Table 'test.t1' doesn't exist |
| 57 |
INSERT INTO t2 (a,b) VALUES (6,'f'); |
| 58 |
+ERROR 42S02: Table 'test.t2' doesn't exist |
| 59 |
ANALYZE LOCAL TABLE t1, t2; |
| 60 |
Table Op Msg_type Msg_text |
| 61 |
-test.t1 analyze status OK |
| 62 |
-test.t2 analyze status OK |
| 63 |
+test.t1 analyze Error Table 'test.t1' doesn't exist |
| 64 |
+test.t1 analyze status Operation failed |
| 65 |
+test.t2 analyze Error Table 'test.t2' doesn't exist |
| 66 |
+test.t2 analyze status Operation failed |
| 67 |
DROP TABLE t1, t2; |
| 68 |
+ERROR 42S02: Unknown table 'test.t1,test.t2' |
| 69 |
CREATE TABLE t1 (a <INT_COLUMN>, <CUSTOM_INDEX>(a)) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> PARTITION BY HASH(a) PARTITIONS 2; |
| 70 |
+ERROR HY000: Engine cannot be used in partitioned tables |
| 71 |
+# ERROR: Statement ended with errno 1572, errname ER_PARTITION_MERGE_ERROR (expected to succeed) |
| 72 |
INSERT INTO t1 (a) VALUES (1),(2),(4),(7); |
| 73 |
+ERROR 42S02: Table 'test.t1' doesn't exist |
| 74 |
ANALYZE TABLE t1; |
| 75 |
Table Op Msg_type Msg_text |
| 76 |
-test.t1 analyze status OK |
| 77 |
+test.t1 analyze Error Table 'test.t1' doesn't exist |
| 78 |
+test.t1 analyze status Operation failed |
| 79 |
INSERT INTO t1 (a) VALUES (8),(10),(11),(12); |
| 80 |
+ERROR 42S02: Table 'test.t1' doesn't exist |
| 81 |
ANALYZE TABLE t1; |
| 82 |
Table Op Msg_type Msg_text |
| 83 |
-test.t1 analyze status OK |
| 84 |
+test.t1 analyze Error Table 'test.t1' doesn't exist |
| 85 |
+test.t1 analyze status Operation failed |
| 86 |
DROP TABLE t1; |
| 87 |
+ERROR 42S02: Unknown table 'test.t1' |