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

EnumerableTableScan: wrong JavaRowFormat for elementType String

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.21.0
    • 1.22.0
    • None

    Description

      Problem unveiled by CALCITE-3535, and also separately by CALCITE-3576.
      When CALCITE-3535 was committed, it made MaterializationTest#testJoinMaterialization8 and MaterializationTest#testJoinMaterialization9 change their execution plan from hashJoin to nestedLoopJoin. This caused an exception

      java.lang.ClassCastException: java.lang.String$CaseInsensitiveComparator cannot be cast to java.lang.String
      

      which seems unrelated to CALCITE-3535 (or CALCITE-3576), so the tests were temporarily disabled.
      The goal of this ticket is to investigate the root cause of this issue and re-activate both tests.

      Attachments

        1. codeHashJoin.txt
          5 kB
          Ruben Q L
        2. codeNestedLoopJoin.txt
          3 kB
          Ruben Q L

        Issue Links

          Activity

            People

              rubenql Ruben Q L
              rubenql Ruben Q L
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m