Bug #87760 | DENSE_RANK wrong with buffered processing and partitions | ||
---|---|---|---|
Submitted: | 14 Sep 2017 16:14 | Modified: | 1 Dec 2017 14:22 |
Reporter: | Dag Wanvik | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S2 (Serious) |
Version: | 8.0.3 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[14 Sep 2017 16:14]
Dag Wanvik
[14 Sep 2017 17:06]
Dag Wanvik
Posted by developer: It's wrong even with the default partition; changed the title. It's only dependent on whether we use a frame buffer or not.
[1 Dec 2017 14:22]
Jon Stephens
Documented fix in the MySQL 8.0.4 changelog as follows: DENSE_RANK() did not work correctly for the first row in a partition when buffering was in use, due to premature initialization of the cache comparator for ORDER BY. Closed.