1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

EXPLAIN JSON: Print out the "expensive constant condition" attached to joins.

This commit is contained in:
Sergei Petrunia
2014-12-06 19:27:42 +03:00
parent 5ee1c25fa8
commit dc259324d7
5 changed files with 104 additions and 5 deletions

View File

@@ -175,6 +175,9 @@ public:
void print_explain_json(Explain_query *query, Json_writer *writer,
bool is_analyze);
void print_explain_json_interns(Explain_query *query, Json_writer *writer,
bool is_analyze);
/* A flat array of Explain structs for tables. */
Explain_table_access** join_tabs;
uint n_join_tabs;
@@ -222,6 +225,9 @@ public:
*/
const char *message;
/* Expensive constant condition */
Item *exec_const_cond;
/* Global join attributes. In tabular form, they are printed on the first row */
bool using_temporary;
bool using_filesort;