fix bugs
This commit is contained in:
parent
53ee89a505
commit
367af0ec30
|
@ -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) {
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
|
|
Loading…
Reference in New Issue