mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-7836: ANALYZE FORMAT=JSON should provide info about GROUP BY
ANALYZE should also record remove_duplicates() operation.
This commit is contained in:
@ -113,3 +113,22 @@ void Sort_and_group_tracker::report_tmp_table(TABLE *tbl)
|
||||
cur_action++;
|
||||
}
|
||||
|
||||
|
||||
void Sort_and_group_tracker::report_duplicate_removal()
|
||||
{
|
||||
DBUG_ASSERT(cur_action < MAX_QEP_ACTIONS);
|
||||
if (total_actions)
|
||||
{
|
||||
/* This is not the first execution. Check if the steps match. */
|
||||
if (qep_actions[cur_action] != EXPL_ACTION_REMOVE_DUPS)
|
||||
varied_executions= true;
|
||||
}
|
||||
|
||||
if (!varied_executions)
|
||||
{
|
||||
qep_actions[cur_action]= EXPL_ACTION_REMOVE_DUPS;
|
||||
}
|
||||
|
||||
cur_action++;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user