[
https://issues.apache.org/jira/browse/CALCITE-7945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mihai Budiu resolved CALCITE-7945.
----------------------------------
Fix Version/s: 1.43.0
Resolution: Fixed
Fixed in
[https://github.com/apache/calcite/commit/01d0be765b4f682b3e1f05b38c595b485766bdfd]
Thank you for your review [~xuzifu666]
> Lambda next to a window function produces an assertion failure
> --------------------------------------------------------------
>
> Key: CALCITE-7945
> URL: https://issues.apache.org/jira/browse/CALCITE-7945
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.42.0
> Reporter: Mihai Budiu
> Assignee: Mihai Budiu
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.43.0
>
>
> {code:java}
> select x, row_number() over (order by x) as rn, "EXISTS"(array[2, 3], e -> e
> = x) as r from (values (1), (3), (2)) as t(x) {code}
> produces the following exception:
> {code:java}
> java.lang.AssertionError
> at
> org.apache.calcite.rel.rules.CalcRelSplitter.execute(CalcRelSplitter.java:133)
> at
> org.apache.calcite.rel.rules.ProjectToWindowRule$ProjectToLogicalProjectAndWindowRule.onMatch(ProjectToWindowRule.java:188)
> at
> org.apache.calcite.plan.volcano.VolcanoRuleCall.onMatch(VolcanoRuleCall.java:223)
> at
> org.apache.calcite.plan.volcano.IterativeRuleDriver.drive(IterativeRuleDriver.java:61)
> at
> org.apache.calcite.plan.volcano.VolcanoPlanner.findBestExp(VolcanoPlanner.java:526){code}
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)