[MDEV-12981] lead and lag don't support defaults Created: 2017-06-02  Updated: 2017-08-26

Status: Open
Project: MariaDB Server
Component/s: Optimizer - Window functions
Fix Version/s: None

Type: Task Priority: Major
Reporter: David Thompson (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 5
Labels: None

Issue Links:
Blocks
blocks MCOL-646 MariaDB 10.2 WF Add the default optio... Closed
PartOf
is part of MDEV-12987 complete window function support for ... Open

 Description   

ColumnStore and other database vendor implementations support a default parameter for the lead and lag window functions. The standard syntax is:
LAG (value_expression [,offset] [,default])
LEAD (value_expression [,offset] [,default])

where the optional default is the value returned should the offset be outside of the window frame. If unspecified then NULL is used.



 Comments   
Comment by Daniel Bartholomew [ 2017-08-26 ]

MySQL 8.0.2 DMR supports the default option to LEAD/LAG window functions, so this is needed to maintain syntax compatibility.

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