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

ReduceExpressionsRule.FILTER_INSTANCE cannot be initialized by some JVM

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.25.0
    • Component/s: core
    • Labels:
      None

      Description

      In certain JVM implementations the field cannot be initialized leading to NullPointerException when using the rule.

      Few stacktraces are given below:

      Caused by: java.lang.NullPointerException: at index 0
      at
      com.onwbp.com.google.common.collect.ObjectArrays.checkElementNotNull(ObjectArrays.java:239)
      at
      com.onwbp.com.google.common.collect.ObjectArrays.checkElementsNotNull(ObjectArrays.java:230)
      at
      com.onwbp.com.google.common.collect.ObjectArrays.checkElementsNotNull(ObjectArrays.java:225)
      at
      com.onwbp.com.google.common.collect.ImmutableList.construct(ImmutableList.java:281)
      at
      com.onwbp.com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:239)
      at
      com.onwbp.com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:209)
      at com.onwbp.org.apache.calcite.tools.RuleSets.ofList(RuleSets.java:41)
      
      java.lang.NullPointerException
      at
      org.apache.calcite.plan.AbstractRelOptPlanner.addRule(AbstractRelOptPlanner.java:147)
      at
      org.apache.calcite.plan.volcano.VolcanoPlanner.addRule(VolcanoPlanner.java:416)
      at herddb.sql.CalcitePlanner.runPlanner(CalcitePlanner.java:576)
      at herddb.sql.CalcitePlanner.translate(CalcitePlanner.java:331)
      at herddb.core.TestUtils.scan(TestUtils.java:70)
      

        Attachments

        1. DeprecatedRulesAreNull.png
          51 kB
          Ruben Q L

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                zabetak Stamatis Zampetakis
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: