Commit d03daaf8 authored by Sergei Petrunia's avatar Sergei Petrunia

Use JSON_NAME, not the "histogram_hb_v2" constant

parent 702f4efc
......@@ -285,7 +285,7 @@ bool Histogram_json_hb::parse(MEM_ROOT *mem_root, Field *field,
const char *hist_array;
int hist_array_len;
if (JSV_ARRAY != json_get_object_key(obj1, obj1 + obj1_len,
"histogram_hb_v2", &hist_array,
JSON_NAME, &hist_array,
&hist_array_len))
{
err_pos= obj1;
......
......@@ -31,8 +31,8 @@
]
}
The histogram is an object with single member named "histogram_hb_v2".
The value of that member is an array of buckets.
The histogram is an object with single member named Histogram_json_hb::
JSON_NAME. The value of that member is an array of buckets.
Each bucket is an object with these members:
"start" - the first value in the bucket.
"size" - fraction of table rows that is contained in the bucket.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment