[MDEV-12959] ORDER BY is mixing up rows Created: 2017-05-31 Updated: 2017-09-14 Resolved: 2017-09-14 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.2.6 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Christian Rishøj | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Environment: |
10.2.6-MariaDB-10.2.6+maria~xenial-log on Ubuntu 16.04.2 LTS running Linux 4.4.0-57 x86_64 |
||
| Issue Links: |
|
||||||||
| Description |
|
Consider the output of the following query:
Now, if I add an ORDER BY clause, the query still returns two results, but the latter row is repeated (and the former row gone):
I have attempted to recreate a minimal test case for the issue, but with not success. |
| Comments |
| Comment by Christian Rishøj [ 2017-05-31 ] | ||||||||||||||||||
|
If I furthermore add a GROUP BY clause, the result is not garbled:
| ||||||||||||||||||
| Comment by Elena Stepanova [ 2017-06-04 ] | ||||||||||||||||||
|
Could you please provide whatever (non-minimal) test case that you have?
and please also attach you cnf file(s). | ||||||||||||||||||
| Comment by Elena Stepanova [ 2017-07-03 ] | ||||||||||||||||||
|
If you can provide the requested information, please comment and the report will be re-opened. | ||||||||||||||||||
| Comment by Sam Hemelryk [ 2017-09-13 ] | ||||||||||||||||||
|
Hi elenst, We countered this issue or at least one very similar this week, and have worked out a simple set of SQL statements to replicate our observations. To reproduce
We believe the outcome of test 2 is the failure, in that we expect it to return the 1,3 but it actually returns 3,3. Notes
| ||||||||||||||||||
| Comment by Alice Sherepa [ 2017-09-14 ] | ||||||||||||||||||
|
This is a duplicate of
|