mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-10372: EXPLAIN fixes for recursive CTEs, including FORMAT=JSON
- Tabular EXPLAIN now prints "RECURSIVE UNION". - There is a basic implementation of EXPLAIN FORMAT=JSON. - it produces "recursive_union" JSON struct - No other details or ANALYZE support, yet.
This commit is contained in:
@@ -327,6 +327,7 @@ class Explain_union : public Explain_node
|
||||
public:
|
||||
Explain_union(MEM_ROOT *root, bool is_analyze) :
|
||||
Explain_node(root),
|
||||
is_recursive_cte(false),
|
||||
fake_select_lex_explain(root, is_analyze)
|
||||
{}
|
||||
|
||||
@@ -362,6 +363,7 @@ public:
|
||||
const char *fake_select_type;
|
||||
bool using_filesort;
|
||||
bool using_tmp;
|
||||
bool is_recursive_cte;
|
||||
|
||||
/*
|
||||
Explain data structure for "fake_select_lex" (i.e. for the degenerate
|
||||
|
Reference in New Issue
Block a user