Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-1036

doesn't support IDB-2022: ORDER BY column not in DISTINCT list.

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Won't Fix
    • None
    • 23.10.0
    • MDB Plugin
    • None

    Description

      MariaDB [test]> select distinct apply_time from test ORDER BY id limit 1;
      ERROR 1178 (42000): The storage engine for the table doesn't support IDB-2022: ORDER BY column not in DISTINCT list.

      Attachments

        Activity

          MariaDB ColumnStore is a columnar orientated storage engine instead of row orientated. `id` isn't referenced in the query so that column isn't accessed and there is no data for it to process. It therefore cannot execute an ORDER BY on that column. Whereas if it was row orientated that column would be available in the intermediate results.

          LinuxJedi Andrew Hutchings (Inactive) added a comment - MariaDB ColumnStore is a columnar orientated storage engine instead of row orientated. `id` isn't referenced in the query so that column isn't accessed and there is no data for it to process. It therefore cannot execute an ORDER BY on that column. Whereas if it was row orientated that column would be available in the intermediate results.

          Re-opening as this is valid SQL, we don't support today but i think it's reasonable to consider this as a future improvement.

          dthompson David Thompson (Inactive) added a comment - Re-opening as this is valid SQL, we don't support today but i think it's reasonable to consider this as a future improvement.

          People

            kirill.perov@mariadb.com Kirill Perov (Inactive)
            hiller1 hiller1
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.