[MDEV-15424] Unreasonable SQL Error (1356) on select from view Created: 2018-02-27 Updated: 2018-12-19 Resolved: 2018-12-19 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer - Window functions |
| Affects Version/s: | 10.3.4, 10.2, 10.3 |
| Fix Version/s: | 10.4.1, 10.2.20, 10.3.12 |
| Type: | Bug | Priority: | Major |
| Reporter: | Tadas BalaiĊĦis | Assignee: | Varun Gupta (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
DB version: 10.3.4-MariaDB on select from view: select * from v_ar where point_id = 1 and ml_id = 8871 and da = date'2018-01-01' I haven't found any rights issues. Then I started to simplify view query and locate the object that causes the error.
into
It's funny for me, because coalesce and ifnull are almost the same function. And there's no connection with lack of rights. |
| Comments |
| Comment by Alice Sherepa [ 2018-09-03 ] | |||||||||
|
Thanks for the report!
| |||||||||
| Comment by Varun Gupta (Inactive) [ 2018-12-13 ] | |||||||||
|
The view's frm
So the issue here is the max(n1) over (partition by n1) is treated as an identifier. This is not | |||||||||
| Comment by Varun Gupta (Inactive) [ 2018-12-14 ] | |||||||||
|
Patch | |||||||||
| Comment by Oleksandr Byelkin [ 2018-12-18 ] | |||||||||
|
OK to push! |