MXS-1247 Add initial support for window functions

This commit will be followed by more tests.
This commit is contained in:
Johan Wikman
2017-08-16 12:33:47 +03:00
parent 27ef5c3048
commit 523e7ed445
6 changed files with 2007 additions and 6 deletions

View File

@ -387,11 +387,11 @@ static const char* BUILTIN_FUNCTIONS[] =
const size_t N_BUILTIN_FUNCTIONS = sizeof(BUILTIN_FUNCTIONS) / sizeof(BUILTIN_FUNCTIONS[0]);
// The functions have been taken from:
// https://mariadb.com/kb/en/mariadb/json-functions
static const char* BUILTIN_10_2_3_FUNCTIONS[] =
{
//
// JSON functions: https://mariadb.com/kb/en/mariadb/json-functions
//
"json_array",
"json_array_append",
"json_array_insert",
@ -417,7 +417,17 @@ static const char* BUILTIN_10_2_3_FUNCTIONS[] =
"json_type",
"json_unquote",
"json_valid",
"json_value"
"json_value",
//
// Window functions: https://mariadb.com/kb/en/mariadb/window-functions/
//
"cume_dist",
"dense_rank",
"ntile",
"percent_rank",
"rank",
"row_number",
};
const size_t N_BUILTIN_10_2_3_FUNCTIONS =