diff --git a/src/query/src/qAggMain.c b/src/query/src/qAggMain.c index 46979909fa1d357c028eb70f2c80577ff44f3074..c49aa015985a45a58b628a6f7380e1eaf8a6697f 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) {