Bug #87207 | select distinct with secondary key for 'Using index for group-by' bad results | ||
---|---|---|---|
Submitted: | 26 Jul 2017 13:56 | Modified: | 27 Sep 2017 2:28 |
Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S1 (Critical) |
Version: | 5.7.18 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | regression |
[26 Jul 2017 13:56]
Shane Bester
[26 Jul 2017 14:06]
MySQL Verification Team
Workaround: set optimizer_switch='use_index_extensions=off';
[26 Jul 2017 14:18]
MySQL Verification Team
Also affects the current 5.7 trunk: Version: '5.7.20' socket: '' port: 3306 (Built on 2017/07/26)
[26 Jul 2017 15:07]
MySQL Verification Team
Also affects: mysqld.exe: Version: '8.0.3-rc' socket: '' port: 3306 (Built on 2017/07/26)
[30 Aug 2017 12:23]
MySQL Verification Team
https://bugs.mysql.com/bug.php?id=87598 marked as duplicate of this one.
[27 Sep 2017 2:28]
Paul DuBois
Posted by developer: Fixed in 5.6.39, 5.7.21, 8.0.4. Incorrect results could occur on a table with a unique index when the optimizer chose a loose index scan even though the unique index had no index extensions.
[9 Nov 2017 6:38]
MySQL Verification Team
Bug #88412 marked as duplicate of this one