1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Implemented cume_dist function.

Also fixed a bug in row_counts detection, when partition changes.
This commit is contained in:
Vicențiu Ciorbaru
2016-03-28 22:48:32 +03:00
parent d40d68f236
commit 3544fe0144
4 changed files with 139 additions and 8 deletions

View File

@ -923,8 +923,8 @@ class Frame_unbounded_following_set_count : public Frame_unbounded_following
/* Read the first row */
if (cursor.get_next())
return;
num_rows_in_partition++;
}
num_rows_in_partition++;
/* Remember which partition we are in */
bound_tracker.check_if_next_group();
@ -1412,8 +1412,6 @@ bool compute_window_func_with_frames(Item_window_func *item_win,
}
/* Make a list that is a concation of two lists of ORDER elements */
static ORDER* concat_order_lists(MEM_ROOT *mem_root, ORDER *list1, ORDER *list2)