Bug #98768 | The ROLLUP super-aggregate row output is not correct | ||
---|---|---|---|
Submitted: | 28 Feb 2020 1:41 | Modified: | 30 Mar 2020 16:49 |
Reporter: | Hope Lee (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 8.0.16, 8.0.19, 5.7.29 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[28 Feb 2020 1:41]
Hope Lee
[28 Feb 2020 6:16]
MySQL Verification Team
Hello Lee, Thank you for the report and test case. regards, Umesh
[30 Mar 2020 16:49]
Jon Stephens
Documented fix in the MySQL 8.0.21 changelog, as follows: Reimplemented rollups without using slices. This fixes the following known issues: ·A repeating column in a GROUP BY ... WITH ROLLUP yielded the wrong result; that is, a GROUP BY of the form GROUP BY a, b, a WITH ROLLUP erroneously produced NULL for some of the column names in the result. ·A GROUP BY ... WITH ROLLUP that did not require a temporary table to print the result also produced an erroneous NULL in place of at least one of the expected column names in the output. Closed.