fix bugs
This commit is contained in:
parent
53ee89a505
commit
367af0ec30
|
@ -1243,7 +1243,7 @@ const SBuiltinFuncDefinition funcMgtBuiltins[] = {
|
|||
.classification = FUNC_MGT_AGG_FUNC,
|
||||
.translateFunc = translateApercentileMerge,
|
||||
.getEnvFunc = getApercentileFuncEnv,
|
||||
.initFunc = dummyInit,
|
||||
.initFunc = functionSetup,
|
||||
.processFunc = apercentileFunctionMerge,
|
||||
.finalizeFunc = apercentileFinalize
|
||||
},
|
||||
|
|
|
@ -2083,7 +2083,7 @@ int32_t apercentileFunctionMerge(SqlFunctionCtx* pCtx) {
|
|||
}
|
||||
|
||||
pInfo->algo = pInputInfo->algo;
|
||||
if (pInput->algo == APERCT_ALGO_TDIGEST) {
|
||||
if (pInfo->algo == APERCT_ALGO_TDIGEST) {
|
||||
} else {
|
||||
buildHistogramInfo(pInputInfo);
|
||||
if (pInputInfo->pHisto->numOfElems <= 0) {
|
||||
|
|
Loading…
Reference in New Issue