mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-34041 Display additional information for materialized subqueries in EXPLAIN/ANALYZE FORMAT=JSON
This commits adds the "materialization" block to the output of EXPLAIN/ANALYZE FORMAT=JSON when materialized subqueries are involved into processing. In the case of ANALYZE additional runtime information is displayed, such as: - chosen strategy of materialization - number of partial match/index lookup loops - sizes of partial match buffers
This commit is contained in:
@ -140,12 +140,24 @@ public:
|
||||
DBUG_ASSERT(idx < array.elements);
|
||||
return *(((Elem*)array.buffer) + idx);
|
||||
}
|
||||
|
||||
/// Const variant of at(), which cannot change data
|
||||
const Elem& at(size_t idx) const
|
||||
{
|
||||
return *(((Elem*)array.buffer) + idx);
|
||||
}
|
||||
|
||||
Elem& operator[](size_t idx)
|
||||
{
|
||||
return at(idx);
|
||||
}
|
||||
|
||||
/// Const variant of operator[]
|
||||
const Elem& operator[](size_t idx) const
|
||||
{
|
||||
return at(idx);
|
||||
}
|
||||
|
||||
/// @returns pointer to first element
|
||||
Elem *front()
|
||||
{
|
||||
|
Reference in New Issue
Block a user