You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Jess Balint (JIRA)" <ji...@apache.org> on 2017/07/03 21:53:00 UTC

[jira] [Created] (CALCITE-1869) NPE validating unbounded window functions

Jess Balint created CALCITE-1869:
------------------------------------

             Summary: NPE validating unbounded window functions
                 Key: CALCITE-1869
                 URL: https://issues.apache.org/jira/browse/CALCITE-1869
             Project: Calcite
          Issue Type: Bug
          Components: core
            Reporter: Jess Balint
            Assignee: Julian Hyde
             Fix For: 1.14.0


If I create an OVER call with {{null}} bounds arguments, there's an NPE. We should add a null-check around these {{accept()}} calls.

{noformat}
java.lang.NullPointerException
	at org.apache.calcite.rex.RexVisitorImpl.visitOver(RexVisitorImpl.java:64)
	at org.apache.calcite.rex.RexOver.accept(RexOver.java:86)
	at org.apache.calcite.rel.core.Project.isValid(Project.java:185)
	at org.apache.calcite.rel.core.Project.<init>(Project.java:82)
	at org.apache.calcite.rel.logical.LogicalProject.<init>(LogicalProject.java:65)
	at org.apache.calcite.rel.logical.LogicalProject.create(LogicalProject.java:120)
	at org.apache.calcite.rel.logical.LogicalProject.create(LogicalProject.java:103)
	at org.apache.calcite.rel.core.RelFactories$ProjectFactoryImpl.createProject(RelFactories.java:126)
	at org.apache.calcite.tools.RelBuilder.project(RelBuilder.java:933)
	at org.apache.calcite.tools.RelBuilder.project(RelBuilder.java:843)
{noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)