[
https://issues.apache.org/jira/browse/CALCITE-6682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ruben Q L resolved CALCITE-6682.
--------------------------------
Resolution: Fixed
Fixed via
[{{2176dfc}}|https://github.com/apache/calcite/commit/2176dfc27b03858e4874b01d2203655e68536d3b]
Thanks [~cbrisson] for the patch!
> Framing unsupported error message lacks LAG/LEAD functions
> ----------------------------------------------------------
>
> Key: CALCITE-6682
> URL: https://issues.apache.org/jira/browse/CALCITE-6682
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.38.0
> Reporter: Claude Brisson
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.39.0
>
>
> The query
> {code}
> select lead(n_nationkey) over (partition by n_regionkey order by n_nationkey
> rows between current row and 1 following) from nation
> {code}
> fails with the error message
> {code}
> ROW/RANGE not allowed with RANK, DENSE_RANK, ROW_NUMBER or
> PERCENTILE_CONT/DISC function
> {code}
> whereas it should also reference the LAG/LEAD functions.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)