提交 367af0ec 编写于 作者: G Ganlin Zhao

fix bugs

上级 53ee89a5
...@@ -1243,7 +1243,7 @@ const SBuiltinFuncDefinition funcMgtBuiltins[] = { ...@@ -1243,7 +1243,7 @@ const SBuiltinFuncDefinition funcMgtBuiltins[] = {
.classification = FUNC_MGT_AGG_FUNC, .classification = FUNC_MGT_AGG_FUNC,
.translateFunc = translateApercentileMerge, .translateFunc = translateApercentileMerge,
.getEnvFunc = getApercentileFuncEnv, .getEnvFunc = getApercentileFuncEnv,
.initFunc = dummyInit, .initFunc = functionSetup,
.processFunc = apercentileFunctionMerge, .processFunc = apercentileFunctionMerge,
.finalizeFunc = apercentileFinalize .finalizeFunc = apercentileFinalize
}, },
......
...@@ -2083,7 +2083,7 @@ int32_t apercentileFunctionMerge(SqlFunctionCtx* pCtx) { ...@@ -2083,7 +2083,7 @@ int32_t apercentileFunctionMerge(SqlFunctionCtx* pCtx) {
} }
pInfo->algo = pInputInfo->algo; pInfo->algo = pInputInfo->algo;
if (pInput->algo == APERCT_ALGO_TDIGEST) { if (pInfo->algo == APERCT_ALGO_TDIGEST) {
} else { } else {
buildHistogramInfo(pInputInfo); buildHistogramInfo(pInputInfo);
if (pInputInfo->pHisto->numOfElems <= 0) { if (pInputInfo->pHisto->numOfElems <= 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册