You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2026/10/05 03:38:00 UTC
[jira] [Updated] (CALCITE-7835) Optimize away LEAD/LAG with a value of 0
[ 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)