1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

rough base for json histogram builder

Signed-off-by: Michael Okoko <okokomichaels@outlook.com>
This commit is contained in:
Michael Okoko
2021-06-24 07:41:09 +01:00
committed by Sergei Petrunia
parent 567552b410
commit 237447de63
3 changed files with 87 additions and 11 deletions

View File

@ -25,4 +25,10 @@ DESCRIBE mysql.column_stats;
SELECT * FROM mysql.column_stats;
set histogram_type=@save_histogram_type;
## Remove against Milestone-2
ANALYZE TABLE t1 PERSISTENT FOR COLUMNS(b) INDEXES();
SELECT * FROM mysql.column_stats;
select table_name, hist_type, decode_histogram(hist_type, histogram ) from mysql.column_stats;
DROP TABLE t1;