[ 
https://issues.apache.org/jira/browse/SPARK-16633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15385411#comment-15385411
 ] 

Yin Huai commented on SPARK-16633:
----------------------------------

Seems this bug only affects cases that use a constant as the column put in 
lag/lead.

> lag/lead does not return the default value when the offset row does not exist
> -----------------------------------------------------------------------------
>
>                 Key: SPARK-16633
>                 URL: https://issues.apache.org/jira/browse/SPARK-16633
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.0.0
>            Reporter: Yin Huai
>            Priority: Critical
>         Attachments: window_function_bug.html
>
>
> Please see the attached notebook. Seems lag/lead somehow fail to recognize 
> that a offset row does not exist and generate wrong results.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to