strongduanmu commented on issue #10567:
URL:
https://github.com/apache/shardingsphere/issues/10567#issuecomment-851748584
We should add `ShowIndexMergedResult` class to handle show index result
merge. The correct results should be as follows:
```
mysql> show index from t_single;
+----------+------------+----------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+------------+
| Table | Non_unique | Key_name | Seq_in_index | Column_name |
Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment |
Index_comment | Visible | Expression |
+----------+------------+----------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+------------+
| t_single | 0 | PRIMARY | 1 | order_id | A
| 0 | NULL | NULL | | BTREE | |
| YES | NULL |
| t_single | 1 | t_single_index | 1 | order_id | A
| 0 | NULL | NULL | | BTREE | |
| YES | NULL |
+----------+------------+----------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+------------+
2 rows in set (17.07 sec)
mysql> show index from t_order;
+---------+------------+---------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+------------+
| Table | Non_unique | Key_name | Seq_in_index | Column_name |
Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment |
Index_comment | Visible | Expression |
+---------+------------+---------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+------------+
| t_order | 0 | PRIMARY | 1 | order_id | A
| 0 | NULL | NULL | | BTREE | |
| YES | NULL |
| t_order | 1 | t_order_index | 1 | order_id | A
| 0 | NULL | NULL | | BTREE | |
| YES | NULL |
+---------+------------+---------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+------------+
2 rows in set (9.63 sec)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]