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

Push limit 0 will result in an infinite loop

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.6.0
    • core
    • 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.01.patch
          5 kB
          Pengcheng Xiong
        2. CALCITE-987.02.patch
          4 kB
          Pengcheng Xiong
        3. CALCITE-987.03.patch
          11 kB
          Pengcheng Xiong
        4. CALCITE-987.04.patch
          11 kB
          Pengcheng Xiong

        Issue Links

          Activity

            People

              pxiong Pengcheng Xiong
              pxiong Pengcheng Xiong
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: