From f6ac682497b3155d1a9b6c1ce79fd4dccc75a998 Mon Sep 17 00:00:00 2001 From: Ganlin Zhao Date: Fri, 21 Jan 2022 10:27:54 +0800 Subject: [PATCH] [TD-11222]: Histogram function --- src/query/src/qAggMain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/query/src/qAggMain.c b/src/query/src/qAggMain.c index 46979909fa..c49aa01598 100644 --- a/src/query/src/qAggMain.c +++ b/src/query/src/qAggMain.c @@ -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) { -- GitLab