You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (Jira)" <ji...@apache.org> on 2021/06/01 22:25:00 UTC

[jira] [Created] (CALCITE-4629) RexNormalize.hashCode() throws NullPointerException

Julian Hyde created CALCITE-4629:
------------------------------------

             Summary: RexNormalize.hashCode() throws NullPointerException
                 Key: CALCITE-4629
                 URL: https://issues.apache.org/jira/browse/CALCITE-4629
             Project: Calcite
          Issue Type: Bug
            Reporter: Julian Hyde


{{RexNormalize.hashCode()}} throws {{NullPointerException}}. The stack is as follows:
{noformat}
[java.util.Objects.requireNonNull(java/util/Objects.java:203)]:
Java::JavaLang::NullPointerException: 
    java.util.Objects.requireNonNull(java/util/Objects.java:203)
    org.apache.calcite.rex.RexNormalize.hashCode(org/apache/calcite/rex/RexNormalize.java:127)
    org.apache.calcite.rex.RexCall.hashCode(org/apache/calcite/rex/RexCall.java:297)
    java.util.HashMap.hash(java/util/HashMap.java:339)
    java.util.HashMap.put(java/util/HashMap.java:612)
    java.util.HashSet.add(java/util/HashSet.java:220)
    org.apache.calcite.rex.RexUtil.addOr(org/apache/calcite/rex/RexUtil.java:1370)
    org.apache.calcite.rex.RexUtil.flattenOr(org/apache/calcite/rex/RexUtil.java:1356)
    org.apache.calcite.rex.RexUtil.composeDisjunction(org/apache/calcite/rex/RexUtil.java:1330)
    org.apache.calcite.rex.RexUtil.composeDisjunction(org/apache/calcite/rex/RexUtil.java:1320)
    org.apache.calcite.tools.RelBuilder.or(org/apache/calcite/tools/RelBuilder.java:721)
{noformat}
It seems likely that this was caused by commit [6a9832c|https://github.com/julianhyde/calcite/commit/6a9832c14e7c7c02a0176920b87d15dab474300a]. I don't have a repro case, and I can't figure out what might have caused this.

The problem occurs in 1.27.0 RC 0.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)