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:
@ -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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user