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

[TD-11222]<feature>: Histogram function

上级 91f021da
......@@ -4964,8 +4964,9 @@ static bool histogram_function_setup(SQLFunctionCtx *pCtx, SResultRowCellInfo* p
return false;
}
double* listBin = (double*) pCtx->param[1].pz;
int32_t numOfBins = (int32_t)pCtx->param[0].i64;
double* listBin = (double*) pCtx->param[1].pz;
int32_t normalized = (int32_t)pCtx->param[2].i64;
pRes->numOfBins = numOfBins;
pRes->orderedBins = (SHistogramFuncBin*)((char*)pRes + sizeof(SHistogramFuncInfo));
for (int32_t i = 0; i < numOfBins; ++i) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册