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

VolcanoPlanner internal valid may throw exception when log trace is enabled

    XMLWordPrintableJSON

Details

    Description

      Unit test in JdbcAdapterTest:

      @Test void testAioob_5() {
      CalciteAssert.model(JdbcTest.SCOTT_MODEL)
      .query("select *\n"
      + "from scott.emp e left join scott.dept d\n"
      + "on 'job' in (select job from scott.bonus b)")
      .runs();
      }

      Exceptions:

      RelSubset [rel#108:RelSubset#7.ENUMERABLE.[]] has wrong best cost {1254.5 rows, 340.5 cpu, 0.0 io}. Correct cost is {1752.0 rows, 337.5 cpu, 0.0 io}

      The best RelNode and the bestCode is different.

      When logĀ  trace is enabled, Tte code will be run:

      if (LOGGER.isDebugEnabled()) {
      assert isValid(Litmus.THROW);
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            nobigo xiong duan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: