File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -2313,24 +2313,18 @@ bool Window_func_runner::add_function_to_run(Item_window_func *win_func)
2313
2313
sum_func->setup_window_func (current_thd, win_func->window_spec );
2314
2314
2315
2315
Item_sum::Sumfunctype type= win_func->window_func ()->sum_func ();
2316
+
2316
2317
switch (type)
2317
2318
{
2318
- case Item_sum::ROW_NUMBER_FUNC:
2319
- case Item_sum::RANK_FUNC:
2320
- case Item_sum::DENSE_RANK_FUNC:
2321
- case Item_sum::COUNT_FUNC:
2322
- case Item_sum::SUM_BIT_FUNC:
2323
- case Item_sum::SUM_FUNC:
2324
- case Item_sum::AVG_FUNC:
2325
- case Item_sum::PERCENT_RANK_FUNC:
2326
- case Item_sum::CUME_DIST_FUNC:
2327
- case Item_sum::NTILE_FUNC:
2328
- break ;
2329
-
2330
- default :
2319
+ /* Distinct is not yet supported. */
2320
+ case Item_sum::GROUP_CONCAT_FUNC:
2321
+ case Item_sum::SUM_DISTINCT_FUNC:
2322
+ case Item_sum::AVG_DISTINCT_FUNC:
2331
2323
my_error (ER_NOT_SUPPORTED_YET, MYF (0 ),
2332
2324
" This aggregate as window function" );
2333
2325
return true ;
2326
+ default :
2327
+ break ;
2334
2328
}
2335
2329
2336
2330
return window_functions.push_back (win_func);
You can’t perform that action at this time.
0 commit comments