You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Jesus Camacho Rodriguez (JIRA)" <ji...@apache.org> on 2017/09/12 17:13:00 UTC
[jira] [Created] (CALCITE-1982) NPE simplifying range expressions
when literal value is null
Jesus Camacho Rodriguez created CALCITE-1982:
------------------------------------------------
Summary: NPE simplifying range expressions when literal value is null
Key: CALCITE-1982
URL: https://issues.apache.org/jira/browse/CALCITE-1982
Project: Calcite
Issue Type: Bug
Components: core
Affects Versions: 1.14.0
Reporter: Jesus Camacho Rodriguez
Assignee: Jesus Camacho Rodriguez
Fix For: 1.14.0
The problem is that we do not check for {{null}} literal values before going into the method that tries to simplify the ranges.
{code}
java.lang.NullPointerException: null
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:191) ~[guava-14.0.1.jar:?]
at com.google.common.collect.Cut$AboveValue.<init>(Cut.java:301) ~[guava-14.0.1.jar:?]
at com.google.common.collect.Cut.aboveValue(Cut.java:296) ~[guava-14.0.1.jar:?]
at com.google.common.collect.Range.atMost(Range.java:249) ~[guava-14.0.1.jar:?]
at org.apache.calcite.rex.RexSimplify.processRange(RexSimplify.java:849) ~[calcite-core-1.13.0.jar:1.13.0]
at org.apache.calcite.rex.RexSimplify.simplifyAnd2ForUnknownAsFalse(RexSimplify.java:668) ~[calcite-core-1.13.0.jar:1.13.0]
at org.apache.calcite.rex.RexSimplify.simplifyAnds(RexSimplify.java:226) ~[calcite-core-1.13.0.jar:1.13.0]
at org.apache.calcite.tools.RelBuilder.filter(RelBuilder.java:811) ~[calcite-core-1.13.0.jar:1.13.0]
at org.apache.calcite.tools.RelBuilder.filter(RelBuilder.java:801) ~[calcite-core-1.13.0.jar:1.13.0]
...
{code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)