diff options
author | Galina Shalygina <galina.shalygina@mariadb.com> | 2019-02-06 23:40:07 +0300 |
---|---|---|
committer | Galina Shalygina <galina.shalygina@mariadb.com> | 2019-02-06 23:40:07 +0300 |
commit | 447e0f023fff0fa2ccfa7e93b77f1da3be3b43f1 (patch) | |
tree | 1210e525389dfa3e4b2fa00e22fb18bf29a7f016 /sql/sql_class.cc | |
parent | e299ae5b0786aa9348e422f4271fb344d51f60fa (diff) | |
download | mariadb-git-447e0f023fff0fa2ccfa7e93b77f1da3be3b43f1.tar.gz |
MDEV-18144: ANALYZE for statement support for PK filters
ANALYZE and ANALYZE FORMAT=JSON structures are changed in the way that they
show additional information when rowid filter is used:
- r_selectivity_pct - the observed filter selectivity
- r_buffer_size - the size of the rowid filter container buffer
- r_filling_time_ms - how long it took to fill rowid filter container
New class Rowid_filter_tracker was added. This class is needed to collect data
about how rowid filter is executed.
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r-- | sql/sql_class.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc index e6453415475..42b94d95933 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -2728,7 +2728,7 @@ void THD::make_explain_field_list(List<Item> &field_list, uint8 explain_flags, if (is_analyze) { field_list.push_back(item= new (mem_root) - Item_float(this, "r_rows", 0.1234, 10, 4), + Item_empty_string(this, "r_rows", NAME_CHAR_LEN, cs), mem_root); item->maybe_null=1; } |