1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Initial implementation of RANK() window function

This commit is contained in:
Sergei Petrunia
2016-02-06 01:53:17 +03:00
parent 30c9450af7
commit 64ab10ffff
7 changed files with 213 additions and 15 deletions

View File

@ -286,6 +286,8 @@ bool JOIN::process_window_functions(List<Item> *curr_fields_list)
return true;
item_win->setup_partition_border_check(thd);
// TODO: somehow, setup_sortkey_check here (either directly here
// or in the item.
int err;
TABLE *tbl= *table;
@ -295,12 +297,12 @@ bool JOIN::process_window_functions(List<Item> *curr_fields_list)
/*
This will cause window function to compute its value for the
current row :
current row :
*/
item_win->advance_window();
/*
Put the new value into temptable's field
/*
Put the new value into temptable's field
TODO: Should this use item_win->update_field() call?
Regular aggegate function implementations seem to implement it.
*/