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

Push limit 0 will result in an infinite loop

    Details

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

      Description

      We use "checkInputForCollationAndLimit" in RelMdUtil.java to check the input #rows. However, it calls RelMetadataQuery.getRowCount which will validate the #rows. The validation will change #row=0 to #row=1. This will result in an infinite loop to push limit. The affected rules include
      SortUnionTransposeRule and any Sort***TransposeRules that call checkInputForCollationAndLimit.

        Attachments

        1. CALCITE-987.04.patch
          11 kB
          Pengcheng Xiong
        2. CALCITE-987.03.patch
          11 kB
          Pengcheng Xiong
        3. CALCITE-987.02.patch
          4 kB
          Pengcheng Xiong
        4. CALCITE-987.01.patch
          5 kB
          Pengcheng Xiong

          Issue Links

            Activity

              People

              • Assignee:
                pxiong Pengcheng Xiong
                Reporter:
                pxiong Pengcheng Xiong
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: