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

ASF GitHub Bot updated CALCITE-7835:
------------------------------------
    Labels: pull-request-available  (was: )

> Optimize away LEAD/LAG with a value of 0
> ----------------------------------------
>
>                 Key: CALCITE-7835
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7835
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.42.0
>            Reporter: Mihai Budiu
>            Priority: Minor
>              Labels: pull-request-available
>
> A simple rewrite rule could remove LAG/LEAD with a value of 0.
> I also want to note that Calcite allows negative values for LEAD/LAG, which 
> the SQL standard rejects, but some dialects allow.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to