[MDEV-17137] Syntax errors with VIEW using MEDIAN Created: 2018-09-05 Updated: 2020-08-25 Resolved: 2018-10-16 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer - Window functions, Views |
| Affects Version/s: | 10.3.9, 10.3 |
| Fix Version/s: | 10.3.11 |
| Type: | Bug | Priority: | Major |
| Reporter: | Hartmut Holzgraefe | Assignee: | Varun Gupta (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
How to reproduce, setup:
All of the above statements succeed without warnings. Direct median query works:
Doing this by using the view doesn't:
And even SHOW CREATE VIEW fails with the same syntax error:
Also the view shows up in SHOW TABLES output, but not in the INFORMATION_SCHEMA.VIEWS table:
The views v1.frm file looks like this:
|
| Comments |
| Comment by Alice Sherepa [ 2018-09-05 ] | ||||||||||||||||
|
Thanks! Reproducible with percentile_cont and median functions, wrong syntax of the query in .frm files
| ||||||||||||||||
| Comment by Varun Gupta (Inactive) [ 2018-09-12 ] | ||||||||||||||||
|
| ||||||||||||||||
| Comment by Varun Gupta (Inactive) [ 2018-09-12 ] | ||||||||||||||||
|
Patch | ||||||||||||||||
| Comment by Sergei Petrunia [ 2018-10-11 ] | ||||||||||||||||
|
Review input provided over email |