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

SqlRun: Match output regardless of order if ORDER BY not present

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0-incubating
    • Component/s: None
    • Labels:
      None

      Description

      If ORDER BY is not present, a compliant implementation may return rows in any order. SqlRun should detect this, output the rows in the original order, not the actual order.

      This feature makes it much easier to handle unsorted data. The previous workaround, adding an ORDER BY clause, may trigger a different execution path and mask bugs. And it was common to forget an ORDER BY and have to go back to add the ORDER BY and correct the data some weeks later.

        Attachments

          Activity

            People

            • Assignee:
              julianhyde Julian Hyde
              Reporter:
              julianhyde Julian Hyde
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: