[MDEV-9847] Window functions: crash with big_tables=1 Created: 2016-03-31  Updated: 2016-04-14  Resolved: 2016-04-06

Status: Closed
Project: MariaDB Server
Component/s: Optimizer - Window functions
Fix Version/s: N/A

Type: Task Priority: Major
Reporter: Sergei Petrunia Assignee: Sergei Petrunia
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
PartOf
is part of MDEV-6115 window functions as in the SQL standard Closed

 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.



 Comments   
Comment by Sergei Petrunia [ 2016-04-06 ]

Fix pushed into the feature tree.

Generated at Thu Feb 08 07:37:46 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.