fix null value handling

This commit is contained in:
Ganlin Zhao 2022-10-18 19:11:49 +08:00
parent 3ec1490fe2
commit 2d1f7354a9
1 changed files with 1 additions and 1 deletions

View File

@ -5363,7 +5363,7 @@ int32_t modeFinalize(SqlFunctionCtx* pCtx, SSDataBlock* pBlock) {
}
SModeItem* pResItem = (SModeItem*)(pInfo->pItems + resIndex * (sizeof(SModeItem) + pInfo->colBytes));
colDataAppend(pCol, currentRow, pResItem->data, false);
colDataAppend(pCol, currentRow, pResItem->data, (maxCount == 0) ? true : false);
return pResInfo->numOfRes;
}