mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 10:15:29 +02:00
MDEV-7856: EXPLAIN FORMAT=JSON should show partitions
This commit is contained in:
parent
abba4184e6
commit
697194461a
9 changed files with 152 additions and 40 deletions
|
|
@ -51,6 +51,9 @@ it into the slow query log.
|
|||
|
||||
*/
|
||||
|
||||
#ifndef SQL_EXPLAIN_INCLUDED
|
||||
#define SQL_EXPLAIN_INCLUDED
|
||||
|
||||
class String_list: public List<char>
|
||||
{
|
||||
public:
|
||||
|
|
@ -646,6 +649,7 @@ public:
|
|||
/* id and 'select_type' are cared-of by the parent Explain_select */
|
||||
StringBuffer<32> table_name;
|
||||
StringBuffer<32> used_partitions;
|
||||
String_list used_partitions_list;
|
||||
// valid with ET_USING_MRR
|
||||
StringBuffer<32> mrr_type;
|
||||
StringBuffer<32> firstmatch_table_name;
|
||||
|
|
@ -768,6 +772,7 @@ public:
|
|||
const char *select_type;
|
||||
|
||||
StringBuffer<32> used_partitions;
|
||||
String_list used_partitions_list;
|
||||
bool used_partitions_set;
|
||||
|
||||
bool impossible_where;
|
||||
|
|
@ -863,3 +868,4 @@ public:
|
|||
};
|
||||
|
||||
|
||||
#endif //SQL_EXPLAIN_INCLUDED
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue