Bug #106509 | Query by multi-valued index and order by desc by another index return one row | ||
---|---|---|---|
Submitted: | 18 Feb 2022 13:15 | Modified: | 18 Feb 2022 13:21 |
Reporter: | Alexey Popukaylo | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S2 (Serious) |
Version: | 8.0.28 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | DESC, multi-valued index |
[18 Feb 2022 13:15]
Alexey Popukaylo
[18 Feb 2022 13:19]
Alexey Popukaylo
Workaround is disabling index with NO_ORDER_INDEX mysql> select /*+ NO_ORDER_INDEX(t access)*/ TaskID FROM t WHERE 3584 MEMBER OF(TaskAccess->"$.access") ORDER BY TaskID DESC; +--------+ | TaskID | +--------+ | 21966 | | 20959 | +--------+ 2 rows in set (0.00 sec)
[18 Feb 2022 13:21]
MySQL Verification Team
Hello Alexey, Thank you for the report and test case. Verified as described. regards, Umesh