1
0
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:
Sergei Petrunia
2015-06-20 04:20:18 +03:00
parent f33173d19e
commit ebe2bd74fe
5 changed files with 97 additions and 13 deletions

View File

@ -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++;
}