Open hawkingrei opened 1 month ago
In MySQL, the row count will get 1
+----+-------------+-------+-------------+-------+---------------+---------+---------+--------+------+----------+--------------------------------------------+
| id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
+----+-------------+-------+-------------+-------+---------------+---------+---------+--------+------+----------+--------------------------------------------+
| 1 | SIMPLE | t | <null> | index | PRIMARY | PRIMARY | 4 | <null> | 1 | 100.0 | Using where; Using index |
| 1 | SIMPLE | tlist | p0,p1,p2,p3 | ALL | <null> | <null> | <null> | <null> | 1 | 100.0 | Using where; Using join buffer (hash join) |
+----+-------------+-------+-------------+-------+---------------+---------+---------+--------+------+----------+--------------------------------------------+
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
v7.5
3. What did you see instead (Required)
v8.1
if you get dual partition, we should get 1 row count.
4. What is your TiDB version? (Required)