提交 fe15fc8a 编写于 作者: H Haojun Liao

[TD-2609]<fix>: fix the crash in case of only one negative value to apply apercentile query.

上级 19679491
......@@ -174,7 +174,7 @@ int32_t tHistogramAdd(SHistogramInfo** pHisto, double val) {
}
assert((*pHisto)->elems[idx].val > val);
} else {
} else if ((*pHisto)->numOfElems > 0) {
assert((*pHisto)->elems[(*pHisto)->numOfEntries].val < val);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册