[MDEV-9445] Wrong result for a grouping query with DISTINCT Created: 2016-01-22 Updated: 2023-11-28 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9 |
| Fix Version/s: | 10.4, 10.5, 10.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Igor Babaev | Assignee: | Sergei Petrunia |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | 11.0-sel | ||
| Description |
|
When working on mdev-8646 I discovered that in in mariadb-10.0/10.1.
always returns only 1 row.
The first query from the test case returns the correct result set:
The second query returns only 1 row:
Interesting that the query
returns the correct result set:
I did not check the earlier versions of mariadb. |
| Comments |
| Comment by Igor Babaev [ 2016-01-22 ] | |||||||||||||||
|
MySQL 5.7/5.6 returns the result sets that differ.
This one is wrong:
| |||||||||||||||
| Comment by Sergei Petrunia [ 2016-01-27 ] | |||||||||||||||
|
| |||||||||||||||
| Comment by Sergei Petrunia [ 2016-01-27 ] | |||||||||||||||
|
|