You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "James Kim (Jira)" <ji...@apache.org> on 2023/01/24 18:54:00 UTC
[jira] [Commented] (DRILL-3596) Allow only () or (, 1) for LEAD and LAG window functions as input parameters
[ https://issues.apache.org/jira/browse/DRILL-3596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17680318#comment-17680318 ]
James Kim commented on DRILL-3596:
----------------------------------
[~adeneche] Could you give some context as to why there is the limitation of offset having to = 1? Are there any plans to add support for offsets greater than 1?
> 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: Abdel Hakim Deneche
> Priority: Major
> 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
(v8.20.10#820010)