Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-17807

Incorrect usage of CUBE/ROLLUP and ORDER BY for a basic query

    XMLWordPrintable

Details

    • New Feature
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • Optimizer
    • None

    Description

      I am not sure if this a bug or an intended limitation.
      But this is not documented and this is certainly an issue. We cannot run a lot of queries in TPC-DS because of this.

      create table _t1 (a int, b int, c int);
       
      explain 
      select 
        a,b,c
      from 
        _t1
      group by 
        a,b,c with rollup
      order by 
        a,b,c;
      

      Gives this error:

      ERROR 1221 (HY000): Incorrect usage of CUBE/ROLLUP and ORDER BY
      

      Attachments

        Issue Links

          Activity

            People

              psergei Sergei Petrunia
              psergei Sergei Petrunia
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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