• Sergei Petrunia's avatar
    MDEV-26901: Estimation for filtered rows less precise ... #4 · dae20dde
    Sergei Petrunia authored
    In Histogram_json_hb::point_selectivity(), do return selectivity of 0.0
    when the histogram says so.
    
    The logic of "Do not return 0.0 estimate as it causes a multiply-by-zero
    meltdown in cost and cardinality calculations" is moved into
    records_in_column_ranges() where it is one *once* per column pair (as
    opposed to doing once per range, which can cause the error to add-up
    to large number when there are many ranges)
    dae20dde
opt_histogram_json.cc 30.1 KB