重复索引创建建议直接拒绝

k_idx 和k_idx1 相同还能创建成功

`obclient [test]> create index k_idx1 on sbtest1(k);
Query OK, 0 rows affected (17.517 sec)

obclient [test]> show create table sbtest1 \G
*************************** 1. row ***************************
       Table: sbtest1
Create Table: CREATE TABLE `sbtest1` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `k` int(11) NOT NULL DEFAULT '0',
  `c` char(120) NOT NULL DEFAULT '',
  `pad` char(60) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `k_idx` (`k`) BLOCK_SIZE 16384 LOCAL,
  KEY `k_idx1` (`k`) BLOCK_SIZE 16384 LOCAL
) AUTO_INCREMENT = 2015029 DEFAULT CHARSET = utf8mb4 ROW_FORMAT = COMPACT COMPRESSION = 'zstd_1.3.8' REPLICA_NUM = 3 BLOCK_SIZE = 16384 USE_BLOOM_FILTER = FALSE TABLET_SIZE = 134217728 PCTFREE = 0
1 row in set (0.007 sec)
`

是的 是可以创建成功 因为索引的名字不一样

这个像Oracle,MySQL等产品侧也有这样的行为,建议在运维中注意,不要重复建索引