Michael Widenius
a7abddeffa
Create 'main' test directory and move 't' and 'r' there
2018-03-29 13:59:44 +03:00
Alexander Barkov
a9b79bf710
Adding tests for MDEV-12861 FIRST_VALUE() does not preserve the exact data type
...
Recent changes in Type_handler fixed this problem. Adding tests only.
2017-05-27 16:39:20 +04:00
Vicențiu Ciorbaru
5bf338435a
MDEV-11746: Wrong result upon using FIRST_VALUE with a window frame
...
The same approach is needed for LAST_VALUE, otherwise the LAST_VALUE sum
functions are not cleared correctly. Now LAST_VALUE behaves as NTH_VALUE
with 0 offset, only that the frame that it is examining is the bottom bound,
not the top bound.
2017-02-14 07:46:58 +02:00
Vicențiu Ciorbaru
57341852b5
MDEV-11746: Wrong result upon using FIRST_VALUE with a window frame
...
Reimplement FIRST_VALUE to act as NTH_VALUE with 0 offset. The previous
implementation was flawed when the window frame would remove values.
2017-02-14 07:46:58 +02:00
Vicențiu Ciorbaru
88a8abbc1b
Add test results for win_first_last_value
2016-09-24 15:12:34 +02:00
Vicențiu Ciorbaru
872c0b4225
Allow first/last value functions to have frame definitions
...
Add a test case to check this behavior.
2016-09-24 15:12:34 +02:00
Vicențiu Ciorbaru
15b8a772cc
Add results for first_value and last_value test case
2016-09-24 15:12:34 +02:00