[MDEV-13552] Bug: Server Shutsdown when using LEAD Window Function within a CASE Function Created: 2017-08-16 Updated: 2019-03-27 Resolved: 2019-03-27 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer - Window functions |
| Affects Version/s: | 10.2.6 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Juan Telleria | Assignee: | Vicențiu Ciorbaru |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Windows |
||
| Attachments: |
|
||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||
| Description |
|
When executing the following query, the Server shutdown:
Thank you |
| Comments |
| Comment by Alice Sherepa [ 2017-08-17 ] | ||||||||||||||||||||||||||
|
this looks similar to | ||||||||||||||||||||||||||
| Comment by Juan Telleria [ 2017-08-25 ] | ||||||||||||||||||||||||||
|
The bug still appears in MariaDB 10.2.8, and causes a Server Shutdown / Crash. In fact, I think it is due to the fact of using a CASE functions along with LEAD / LAG. | ||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2017-08-25 ] | ||||||||||||||||||||||||||
|
Juan, Thanks for the report. I can reproduce a crash with a similar query, but the stack trace looks different from yours. To make sure we are fixing the same problem that you encounter and not anything else, could you please provide the output of
and paste or attach your cnf file(s)? | ||||||||||||||||||||||||||
| Comment by Juan Telleria [ 2017-08-28 ] | ||||||||||||||||||||||||||
|
By the way, Window Functions are better documented in MariaDB Knowledge Base in the ColumnStore Section than in the general Server Section: For example, LEAD and LAG aren't explained in the Server Section. | ||||||||||||||||||||||||||
| Comment by Juan Telleria [ 2017-08-28 ] | ||||||||||||||||||||||||||
|
Attached CREATE TABLE and Indexes + my.ini | ||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2017-08-29 ] | ||||||||||||||||||||||||||
|
Thank you. So, your case seems to be a bit different. I can reproduce the exact crash on 10.2.6 both with your original structures and with the simplified test case below:
This particular issue was fixed in 10.2.7 in scope of cvicentiu, I will attach the original unsimplified test case – it consists of the attached tables, a lot of auto-generated garbage data, and the query reported in the bug description. It should not be put into the regression suite, but after fixing | ||||||||||||||||||||||||||
| Comment by Alice Sherepa [ 2019-03-27 ] | ||||||||||||||||||||||||||
|
The query from mdev13552.test does to crash, I am closing the bug |