[
https://issues.apache.org/jira/browse/SPARK-30734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17231198#comment-17231198
]
jiaan.geng commented on SPARK-30734:
------------------------------------
The fact is each mainstream database don't support specify window frame for
LEAD/LAG.
https://issues.apache.org/jira/browse/SPARK-33125 improved the error message.
Let me close this ticket.
> AnalysisException that window RangeFrame not match RowFrame
> -----------------------------------------------------------
>
> Key: SPARK-30734
> URL: https://issues.apache.org/jira/browse/SPARK-30734
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 3.1.0
> Reporter: jiaan.geng
> Priority: Major
>
>
>
> {code:java}
> select last(salary) over(order by salary range between 1000 preceding and
> 1000 following),
> lag(salary) over(order by salary range between 1000 preceding and 1000
> following),
> salary from empsalary
> org.apache.spark.sql.AnalysisException
> Window Frame specifiedwindowframe(RangeFrame, -1000, 1000) must match the
> required frame specifiedwindowframe(RowFrame, -1, -1);
> {code}
>
> Maybe we need to fix this issue.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]