提交 a1d6e6af 编写于 作者: G Ganlin Zhao

[TD-11222]<feature>: Histogram function

上级 7075d621
...@@ -5012,7 +5012,7 @@ static void histogram_function(SQLFunctionCtx *pCtx) { ...@@ -5012,7 +5012,7 @@ static void histogram_function(SQLFunctionCtx *pCtx) {
if (pRes->normalized) { if (pRes->normalized) {
for (int32_t b = 0; b < pRes->numOfBins; ++b) { for (int32_t b = 0; b < pRes->numOfBins; ++b) {
pRes->orderedBins[b].count_norm = pRes->orderedBins[b].count / totalElems; pRes->orderedBins[b].count_norm = pRes->orderedBins[b].count / (double)totalElems;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册