You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-1717 GROUP BY handler now processes only relevant queries.
This commit is contained in:
@ -1156,8 +1156,11 @@ create_calpont_group_by_handler(THD* thd, Query* query)
|
||||
{
|
||||
ha_calpont_group_by_handler* handler = NULL;
|
||||
|
||||
// Create a handler if there is an agregate or a GROUP BY
|
||||
// and if vtable was explicitly disabled.
|
||||
if ( thd->infinidb_vtable.vtable_state == THD::INFINIDB_DISABLE_VTABLE
|
||||
&& thd->variables.infinidb_vtable_mode == 0)
|
||||
&& thd->variables.infinidb_vtable_mode == 0
|
||||
&& ( query->group_by || thd->lex->select_lex.with_sum_func) )
|
||||
{
|
||||
handler = new ha_calpont_group_by_handler(thd, query);
|
||||
|
||||
|
Reference in New Issue
Block a user