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

Window functions: crash with big_tables=1

Details

    Description

      One can use @@big_tables variable to force temp.tables to be on-disk (Aria or MyiSAM).

      However, window function crash with it:

      create table ten(a int);
      insert into ten values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
       
      set big_tables=1;
      select rank() over (order by a) from ten;
      

      The reason is that we pass wrong parameters to filesort(). filesort should produce a list of rowids for us, but it produces a list of

      {sort_field, addon_columns}

      instead.

      I know how to fix this.

      Attachments

        Issue Links

          Activity

            psergei Sergei Petrunia created issue -
            psergei Sergei Petrunia made changes -
            Field Original Value New Value
            psergei Sergei Petrunia made changes -
            Assignee Sergei Petrunia [ psergey ]

            Fix pushed into the feature tree.

            psergei Sergei Petrunia added a comment - Fix pushed into the feature tree.
            psergei Sergei Petrunia made changes -
            Component/s Optimizer [ 10200 ]
            Fix Version/s N/A [ 14700 ]
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Closed [ 6 ]
            elenst Elena Stepanova made changes -
            Component/s Optimizer - Window functions [ 13502 ]
            Component/s Optimizer [ 10200 ]
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 74723 ] MariaDB v4 [ 132830 ]

            People

              psergei Sergei Petrunia
              psergei Sergei Petrunia
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.