mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
JSON_HB histogram: represent values of BIT() columns in hex always
This commit is contained in:
@ -445,3 +445,18 @@ analyze table t1 persistent for all;
|
||||
analyze select f from t1 where f in (77, 1, 144, 73, 14, 12);
|
||||
drop table t1;
|
||||
|
||||
|
||||
--echo #
|
||||
--echo # Test that histograms over BIT fields use hex
|
||||
--echo #
|
||||
create table t1 (a BIT(64));
|
||||
insert into t1 values
|
||||
(x'01'),(x'10'),(x'BE562B1A99001918');
|
||||
set histogram_type= JSON_HB;
|
||||
analyze table t1 persistent for all;
|
||||
--source include/json_hb_histogram.inc
|
||||
select histogram
|
||||
from mysql.column_stats where table_name='t1' and db_name=database();
|
||||
|
||||
drop table t1;
|
||||
|
||||
|
Reference in New Issue
Block a user