mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Use existing statistics test to improve coverage for JSON statistics
Signed-off-by: Michael Okoko <okokomichaels@outlook.com>
This commit is contained in:
committed by
Sergei Petrunia
parent
3692adebd4
commit
058a90e6f5
@@ -1992,6 +1992,7 @@ public:
|
||||
class Histogram_builder_json : public Histogram_builder
|
||||
{
|
||||
std::vector<std::string> bucket_bounds;
|
||||
bool got_first_value = false;
|
||||
|
||||
public:
|
||||
Histogram_builder_json(Field *col, uint col_len, ha_rows rows)
|
||||
@@ -2021,7 +2022,7 @@ public:
|
||||
while (curr_bucket != hist_width &&
|
||||
count > bucket_capacity * (curr_bucket + 1))
|
||||
{
|
||||
auto it = bucket_bounds.begin();
|
||||
it = bucket_bounds.begin();
|
||||
bucket_bounds.insert(it+curr_bucket, bucket_bounds[curr_bucket-1]);
|
||||
curr_bucket++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user