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

incorrect result for window function with group by and rollup

    XMLWordPrintable

    Details

      Description

      visible on a test case for MDEV-19398:

      CREATE TABLE t1 ( a char(25), b text);
      INSERT INTO t1 VALUES ('foo','bar');
       
      SELECT
        SUM(b)       OVER (PARTITION BY a),
        ROW_NUMBER() OVER (PARTITION BY b)
      FROM t1
      GROUP BY
        LEFT((SYSDATE()), 'foo')
      WITH ROLLUP;
      

      10.6 with MyISAM shows correct result, 10.6/InnoDB and 10.5 show incorrect result

        Attachments

          Activity

            People

            Assignee:
            psergei Sergei Petrunia
            Reporter:
            serg Sergei Golubchik
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.