[MDEV-9780] Window functions: interplay between window function and other constructs Created: 2016-03-23 Updated: 2016-10-03 Resolved: 2016-10-03 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer - Window functions |
| Fix Version/s: | 10.2.1 |
| Type: | Task | Priority: | Major |
| Reporter: | Sergei Petrunia | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Sprint: | 10.2.0-9, 10.2.0-10, 10.2.0-11 | ||||||||
| Description |
|
Study (and fix) the interplay between window functions and other SQL constructs, like ORDER BY ... LIMIT, DISTINCT, etc. Known things:
|
| Comments |
| Comment by Sergei Petrunia [ 2016-04-07 ] | ||||||||||
|
Example from Peter:
This crashes, because "split_sum_func" process is not done correctly for window functions.
| ||||||||||
| Comment by Sergei Petrunia [ 2016-04-10 ] | ||||||||||
|
The above is now resolved. | ||||||||||
| Comment by Sergei Petrunia [ 2016-04-10 ] | ||||||||||
|
The problem with DISTINCT being converted into GROUP BY is resolved | ||||||||||
| Comment by Sergei Petrunia [ 2016-04-10 ] | ||||||||||
|
We seem to still have a problem with queries that have aggregates but do not have GROUP BY clause. This is not critical because aggregages w/o GROUP BY means the query output is just one row. It is not very meaningful to compute window functions over a resultset that has just one row (although this is allowed and should be fixed). | ||||||||||
| Comment by Sergei Petrunia [ 2016-09-28 ] | ||||||||||
|
Marking as fixed (in 10.2.1 version) |