【产品名称】 OceanBase
【产品版本】Server version: 5.7.25 OceanBase 3.1.0 (r-) (Built May 30 2021 11:21:29)
【问题描述】
MySQL [test002]> delete t1, t2 from t1, t2 where t1.c1 = t2.c1;
ERROR 1235 (0A000): uncertain plan violating external consistency not supported
MySQL [test002]> delete from t1 order by c1 limit 1;
ERROR 1235 (0A000): uncertain plan violating external consistency not supported
MySQL [test002]> show create table t1\G;
*************************** 1. row ***************************
Table: t1
Create Table: CREATE TABLE `t1` (
`c1` int(11) NOT NULL,
`c2` int(11) DEFAULT NULL,
PRIMARY KEY (`c1`)
) DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = COMPACT COMPRESSION = ‘zstd_1.3.8’ REPLICA_NUM = 1 BLOCK_SIZE = 16384 USE_BLOOM_FILTER = FALSE TABLET_SIZE = 134217728 PCTFREE = 0
partition by key(c1)
(partition p0,
partition p1,
partition p2,
partition p3)
1 row in set (0.003 sec)
-----------------------------------------------------------------
MySQL [test002]> show create table t2\G;
*************************** 1. row ***************************
Table: t2
Create Table: CREATE TABLE `t2` (
`c1` int(11) NOT NULL,
`c2` int(11) DEFAULT NULL,
PRIMARY KEY (`c1`)
) DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = COMPACT COMPRESSION = ‘zstd_1.3.8’ REPLICA_NUM = 1 BLOCK_SIZE = 16384 USE_BLOOM_FILTER = FALSE TABLET_SIZE = 134217728 PCTFREE = 0
partition by key(c1)
(partition p0,
partition p1,
partition p2,
partition p3)
--------------------------------------------------------