[ 
https://issues.apache.org/jira/browse/DRILL-3596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Khurram Faraaz closed DRILL-3596.
---------------------------------

Verified.

{code}
0: jdbc:drill:schema=dfs.tmp> select lead(col1,1,1) OVER(ORDER BY col1) from 
FEWRWSPQQ_101;
Error: UNSUPPORTED_OPERATION ERROR: Function LEAD only supports (<value 
expression>) or (<value expression>, 1)
See Apache DRILL JIRA: DRILL-3596


[Error Id: 2d3cd780-a4a3-4e6d-a48c-f5d1c169f336 on centos-04.qa.lab:31010] 
(state=,code=0)
{code}

> Allow only (<expression>) or (<expression>, 1) for LEAD and LAG window 
> functions as input parameters
> ----------------------------------------------------------------------------------------------------
>
>                 Key: DRILL-3596
>                 URL: https://issues.apache.org/jira/browse/DRILL-3596
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Execution - Relational Operators
>    Affects Versions: 1.2.0
>            Reporter: Khurram Faraaz
>            Assignee: Deneche A. Hakim
>              Labels: window_function
>             Fix For: 1.2.0
>
>
> We need to disable the third input parameter in LEAD and LAG window 
> functions. We should support this syntax.
> LEAD(<expression>) ,or LEAD(<expression>,1)
> LAG(<expression>), or LAG(<expression>,1)
> In both the functions above, the second parameter is the default offset 
> value, use of any other value must he handled and reported to user as error.
> Use of a third input parameter to both the functions must be disallowed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to