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

Sort transpose rules might fall in an infinite loop

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.0
    • 1.6.0
    • core
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jcamacho Jesús Camacho Rodríguez
            jcamacho Jesús Camacho Rodríguez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment