mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-26886: Estimation for filtered rows less precise with JSON histogram
- Make Histogram_json_hb::range_selectivity handle singleton buckets specially when computing selectivity of the max. endpoint bound. (for min. endpoint, we already do that). - Also, fixed comments for Histogram_json_hb::find_bucket
This commit is contained in:
@@ -124,6 +124,6 @@ public:
|
||||
private:
|
||||
double get_left_fract(int idx);
|
||||
std::string& get_end_value(int idx);
|
||||
int find_bucket(Field *field, const uchar *lookup_val, bool *equal);
|
||||
int find_bucket(const Field *field, const uchar *lookup_val, bool *equal);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user