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

Sort transpose rules might fall in an infinite loop

    Details

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

      Description

      CALCITE-987 introduced the RelMdMaxRowCount metadata provider. By default, RelMdMaxRowCount returns Double.MAX, which is causing some infinite loops in the current test suite, as Sort will continue being pushed below Union/Join (if the estimate row count for Union/Join is Double.MAX).

      I propose to return null by default if we cannot get the maximum number of rows, which makes more sense and allows catching this issue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jcamachorodriguez Jesus Camacho Rodriguez
                Reporter:
                jcamachorodriguez Jesus Camacho Rodriguez
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: