mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-27229: Estimation for filtered rows less precise ... #5
Followup: remove this line from get_column_range_cardinality() set_if_bigger(res, col_stats->get_avg_frequency()); and make sure it is only used with the binary histograms. For JSON histograms, it makes the estimates unnecessarily imprecise.
This commit is contained in:
@ -409,9 +409,9 @@ analyze select COUNT(*) FROM t1 WHERE a > 'bar';
|
||||
analyze select COUNT(*) FROM t1 WHERE a >='bar';
|
||||
|
||||
# Can enable these after get_avg_frequency issue is resolved:
|
||||
# analyze select COUNT(*) FROM t1 WHERE a < 'aaa';
|
||||
# analyze select COUNT(*) FROM t1 WHERE a <='aaa';
|
||||
# analyze select COUNT(*) FROM t1 WHERE a < 'bar';
|
||||
analyze select COUNT(*) FROM t1 WHERE a < 'aaa';
|
||||
analyze select COUNT(*) FROM t1 WHERE a <='aaa';
|
||||
analyze select COUNT(*) FROM t1 WHERE a < 'bar';
|
||||
|
||||
analyze select COUNT(*) FROM t1 WHERE a <='bar';
|
||||
|
||||
|
Reference in New Issue
Block a user