Commit graph

4 commits

Author SHA1 Message Date
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