[MDEV-9924] Assertion `((select_options & (1ULL << 17)) ? 1 : 0)' failed in bool JOIN::make_aggr_tables_info Created: 2016-04-14 Updated: 2020-05-05 Resolved: 2017-02-16 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer - Window functions |
| Affects Version/s: | 10.2 |
| Fix Version/s: | 10.2.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | 10.2-rc | ||
| Issue Links: |
|
||||||||||||
| Description |
|
|
| Comments |
| Comment by Sergei Petrunia [ 2016-04-14 ] | ||||||||||||
|
This query should have returned an error. "rnk" refers to a window function, so it may not be used as a GROUP BY argument. | ||||||||||||
| Comment by Elena Stepanova [ 2016-04-14 ] | ||||||||||||
|
Yes, I know. It works as expected (meaning returns an error) for HAVING, but causes an assertion failure for GROUP BY. | ||||||||||||
| Comment by Elena Stepanova [ 2016-09-22 ] | ||||||||||||
|
Still happens on current bb-10.2-vicentiu-window.
| ||||||||||||
| Comment by Igor Babaev [ 2017-02-13 ] | ||||||||||||
|
This is a simpler query that fails in the same way:
| ||||||||||||
| Comment by Igor Babaev [ 2017-02-15 ] | ||||||||||||
|
If I remove the failing assertion (that is not valid anymore) I get
The above is apparently not correct. At the same time I have:
And this is correct. I will investigate why we have this difference. | ||||||||||||
| Comment by Igor Babaev [ 2017-02-16 ] | ||||||||||||
|
The fix for this bug was pushed into the 10.2 tree. |