Mihai Budiu created CALCITE-7835:
------------------------------------
Summary: 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
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)