[MDEV-14279] Document window functions implemented in 10.2 Created: 2017-11-03  Updated: 2017-11-17  Resolved: 2017-11-17

Status: Closed
Project: MariaDB Server
Component/s: Documentation
Affects Version/s: 10.2.10
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Alexander Keremidarski Assignee: Ian Gilfillan
Resolution: Fixed Votes: 0
Labels: None


 Description   

Window functions pages in https://mariadb.com/kb/en/library/window-functions/ do not mention the following functions:
LAG()
LEAD()
NTH_VALUE()
LAST_VALUE()

All of them are working in 10.2.10
{{CREATE TABLE t (x INT);
INSERT INTO t VALUES(1),(3),(2);
SELECT x, LAG OVER() lag, LEAD OVER() lead, NTH_VALUE(x, 1) OVER() first, LAST_VALUE OVER() last FROM t;
-----------------------

x lag lead first last

-----------------------

1 NULL 2 1 3
3 2 NULL 1 3
2 1 3 1 3

-----------------------
3 rows in set (0.00 sec)

SELECT @@version;
---------------------

@@version

---------------------

10.2.10-MariaDB-log

---------------------
1 row in set (0.00 sec)}}



 Comments   
Comment by Ian Gilfillan [ 2017-11-17 ]

Functions are all now mentioned, will be expanded later

Generated at Thu Feb 08 08:12:19 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.