This commit is contained in:
Ganlin Zhao 2022-06-07 19:30:49 +08:00
parent 351ac2d81c
commit 53ee89a505
1 changed files with 2 additions and 1 deletions

View File

@ -2082,7 +2082,8 @@ int32_t apercentileFunctionMerge(SqlFunctionCtx* pCtx) {
pInputInfo = (SAPercentileInfo *)varDataVal(data); pInputInfo = (SAPercentileInfo *)varDataVal(data);
} }
if (pInfo->algo == APERCT_ALGO_TDIGEST) { pInfo->algo = pInputInfo->algo;
if (pInput->algo == APERCT_ALGO_TDIGEST) {
} else { } else {
buildHistogramInfo(pInputInfo); buildHistogramInfo(pInputInfo);
if (pInputInfo->pHisto->numOfElems <= 0) { if (pInputInfo->pHisto->numOfElems <= 0) {