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

Window function: Assertion(order) failed in Filesort::Filesort when using OVER()

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 10.2(EOL)
    • N/A
    • Optimizer
    • None

    Description

      This query:

      DROP TABLE IF EXISTS t1;
      CREATE TABLE t1 (a INT);
      INSERT INTO t1 VALUES (10),(20),(30),(40);
      SELECT AVG(a) OVER () FROM t1;
      

      crashed the server on DBUG_ASSERT:

      mysqld: /home/bar/maria-git/server.10.2/sql/filesort.h:70: Filesort::Filesort(ORDER*, ha_rows, bool, SQL_SELECT*): Assertion `order' failed.
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            bar Alexander Barkov
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.