Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-4629

RexNormalize.hashCode() throws NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      RexNormalize.hashCode() throws NullPointerException. The stack is as follows:

      [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)
      

      It seems likely that this was caused by commit 6a9832c. 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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              julianhyde Julian Hyde
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: