[MDEV-10897] Window functions without a table crash Created: 2016-09-26  Updated: 2017-02-05  Resolved: 2017-02-05

Status: Closed
Project: MariaDB Server
Component/s: Optimizer - Window functions
Affects Version/s: 10.2
Fix Version/s: 10.2.4

Type: Bug Priority: Major
Reporter: Vicențiu Ciorbaru Assignee: Igor Babaev
Resolution: Fixed Votes: 0
Labels: 10.2-rc


 Description   

SELECT <win_func>() over ();

This crashes. Since there is no table, we can't attach the window function computation step to it.

There is a separate code path however for sum functions when we have such a select. We should handle window functions similarly in that case.



 Comments   
Comment by Vicențiu Ciorbaru [ 2016-09-26 ]

cc: psergey igor sanja

Comment by Elena Stepanova [ 2017-01-24 ]

Is it still real? We've had a few of these.

Comment by Igor Babaev [ 2017-02-05 ]

The patch for bug mdev-11138 fixed this problem.

Generated at Thu Feb 08 07:45:46 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.