mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02:00
MDEV-18608: Defaults for 10.4: histogram size should be set
Change the defaults: -histogram_size=0 +histogram_size=254 -histogram_type=SINGLE_PREC_HB +histogram_type=DOUBLE_PREC_HB Adjust the testcases: - Some have ignorable changes in EXPLAIN outputs and more counter increments due to EITS table reads. - Testcases that meaningfully depend on the old defaults are changed to use the old values.
This commit is contained in:
parent
19c6a7bbd7
commit
15a77a1a2c
25 changed files with 136 additions and 115 deletions
|
|
@ -5,7 +5,8 @@ drop table if exists t1,t2;
|
|||
--enable_warnings
|
||||
|
||||
set @save_use_stat_tables=@@use_stat_tables;
|
||||
|
||||
set @save_hist_size=@@histogram_size, @save_hist_type=@@histogram_type;
|
||||
set histogram_size=0, histogram_type='single_prec_hb';
|
||||
DELETE FROM mysql.table_stats;
|
||||
--sorted_result
|
||||
DELETE FROM mysql.column_stats;
|
||||
|
|
@ -196,7 +197,7 @@ SELECT db_name, table_name, column_name,
|
|||
DELETE FROM mysql.column_stats;
|
||||
|
||||
set histogram_size= 0;
|
||||
set histogram_type=default;
|
||||
set histogram_type='single_prec_hb';
|
||||
ANALYZE TABLE t1;
|
||||
|
||||
|
||||
|
|
@ -657,8 +658,8 @@ FLUSH TABLES;
|
|||
--query_vertical select UPPER(db_name),UPPER(table_name),UPPER(column_name),min_value,max_value,nulls_ratio,avg_length,avg_frequency,hist_size,hist_type,hex(histogram),decode_histogram(hist_type,histogram) from mysql.column_stats where UPPER(db_name)='WORLD' and UPPER(table_name)='COUNTRYLANGUAGE' and UPPER(column_name) = 'PERCENTAGE';
|
||||
--query_vertical select UPPER(db_name),UPPER(table_name),UPPER(column_name),min_value,max_value,nulls_ratio,avg_length,avg_frequency,hist_size,hist_type,hex(histogram),decode_histogram(hist_type,histogram) from mysql.column_stats where UPPER(db_name)='WORLD' and UPPER(table_name)='CITY' and UPPER(column_name) = 'POPULATION';
|
||||
|
||||
set histogram_type=default;
|
||||
set histogram_size=default;
|
||||
set histogram_type='single_prec_hb';
|
||||
set histogram_size=0;
|
||||
|
||||
use test;
|
||||
DROP DATABASE world;
|
||||
|
|
@ -732,8 +733,8 @@ select db_name, table_name, column_name,
|
|||
hist_size, hist_type, HEX(histogram)
|
||||
FROM mysql.column_stats;
|
||||
|
||||
set histogram_size=default;
|
||||
set histogram_type=default;
|
||||
set histogram_size=0;
|
||||
set histogram_type='single_prec_hb';
|
||||
|
||||
drop table t1;
|
||||
|
||||
|
|
@ -776,7 +777,7 @@ select db_name, table_name, column_name,
|
|||
hist_size, hist_type, HEX(histogram)
|
||||
FROM mysql.column_stats;
|
||||
|
||||
set histogram_size=default;
|
||||
set histogram_size=0;
|
||||
|
||||
drop table t1, t2;
|
||||
|
||||
|
|
@ -898,3 +899,5 @@ DROP TABLE t1;
|
|||
--echo #
|
||||
--echo # End of 10.2 tests
|
||||
--echo #
|
||||
set histogram_size=@save_hist_size, histogram_type=@save_hist_type;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue