[MDEV-13091] "Reference not supported" with nested GROUP BY's on the same table and column Created: 2017-06-14 Updated: 2017-08-29 Resolved: 2017-08-29 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.2.5, 10.2.6, 10.2 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Estructure | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | need_feedback | ||
| Environment: |
Windows 7, x64 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
I had a very complex query (it was quite a complex view which used another pretty complex view). I'm attaching the smallest example I have found which reproduces the issue (it's a useless construct for any other purpose). |
| Comments |
| Comment by Alice Sherepa [ 2017-06-14 ] | |||||||||||||||||||
|
I confirm it on 10.3.0 Ubuntu 16.04. There is no error, if there is no index on "i" column or group by is not used.
| |||||||||||||||||||
| Comment by Estructure [ 2017-06-14 ] | |||||||||||||||||||
|
There is no error either without any one of the two WHERE clauses (or both). | |||||||||||||||||||
| Comment by Elena Stepanova [ 2017-06-25 ] | |||||||||||||||||||
|
Estructure, alice, thank you for reporting and confirming. It looks like this particular problem was fixed in the scope of
It will be released in 10.2.7. However, since it obviously depended on the execution plan (hence the effect of the key, as Alice noted), it's also possible that the execution plan has changed and this is the reason why the problem is not visible anymore. Estructure, would you be willing to check your original complicated query on the current 10.2 build, before 10.2.7 is released, or do you prefer to wait for the release? | |||||||||||||||||||
| Comment by Elena Stepanova [ 2017-07-31 ] | |||||||||||||||||||
|
Estructure, did you have a chance to upgrade? Are you still experiencing the problem? | |||||||||||||||||||
| Comment by Elena Stepanova [ 2017-08-29 ] | |||||||||||||||||||
|
For now I will consider it a duplicate of |