[MDEV-6707] Wrong result (extra row) with group by, multi-part key Created: 2014-09-06 Updated: 2023-11-28 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.1.67, 5.2.14, 5.3.12, 10.3.4, 10.3, 10.4 |
| Fix Version/s: | 10.4, 11.0, 11.1, 11.2, 11.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Sergei Petrunia |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | 11.0-sel, not-10.5+, upstream | ||
| Sprint: | 5.5.59 |
| Description |
|
Test case:
Actual result:
Expected result:
Note: The test case is not minimal, first 4 rows should be enough to reproduce the issue on MariaDB. But this test case is universal for all of MySQL/MariaDB versions (MySQL 5.7 requires all the rows) EXPLAIN:
|
| Comments |
| Comment by Elena Stepanova [ 2014-09-06 ] | ||||||
|
While the bug is upstream (I filed it as http://bugs.mysql.com/bug.php?id=73825), the fate of a similar bug http://bugs.mysql.com/bug.php?id=70359 leaves little hope for this one, so I'm assigning it for evaluation – whether we really want to wait another year, or fix it on our own. | ||||||
| Comment by Varun Gupta (Inactive) [ 2018-01-05 ] | ||||||
|
| ||||||
| Comment by Sergei Petrunia [ 2018-01-10 ] | ||||||
|
(varun please post your candidate patch here for the record) I've read the patch and agree with the approach, I want a full patch for review. Input so far:
| ||||||
| Comment by Varun Gupta (Inactive) [ 2018-01-10 ] | ||||||
|
http://lists.askmonty.org/pipermail/commits/2018-January/011803.html | ||||||
| Comment by Sergei Petrunia [ 2018-01-18 ] | ||||||
|
Review input provided via email. Please submit again for review when addressed. | ||||||
| Comment by Varun Gupta (Inactive) [ 2018-01-18 ] | ||||||
|
Patch after addressing the review | ||||||
| Comment by Sergei Petrunia [ 2018-03-20 ] | ||||||
|
More review feedback: https://lists.launchpad.net/maria-developers/msg11142.html | ||||||
| Comment by Varun Gupta (Inactive) [ 2018-04-09 ] | ||||||
|
Patch after 2nd code review | ||||||
| Comment by Alice Sherepa [ 2022-11-29 ] | ||||||
|
Currently, MariaDB 10.5+ returns correct results, wrong results on 10.3+10.4. And bb-11.0 3135acf0bba521cd032cbf18bc6d also returns an extra row. |