1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-27243: Estimation for filtered rows less precise ... #7

Added a testcase
This commit is contained in:
Sergei Petrunia
2022-01-08 22:54:23 +03:00
committed by Sergei Petrunia
parent 531dd708ef
commit d3e511d421
2 changed files with 27 additions and 0 deletions

View File

@ -416,3 +416,16 @@ analyze select COUNT(*) FROM t1 WHERE a >='bar';
analyze select COUNT(*) FROM t1 WHERE a <='bar';
drop table t1;
--echo #
--echo # MDEV-27243: Estimation for filtered rows less precise ... #7
--echo # (Testcase only)
CREATE TABLE t1 (f TIME);
INSERT INTO t1 SELECT IF(seq%2,'00:00:00',SEC_TO_TIME(seq+7200)) FROM seq_1_to_1000;
SET histogram_type= JSON_HB;
ANALYZE TABLE t1 PERSISTENT FOR ALL;
ANALYZE SELECT * FROM t1 WHERE f > '00:01:00';
drop table t1;