fix(query): fix avg.py test cases

This commit is contained in:
Ganlin Zhao 2022-08-22 19:26:28 +08:00
parent cd3897c7fe
commit 4bec769211
1 changed files with 1 additions and 1 deletions

View File

@ -1611,7 +1611,7 @@ int32_t minmaxFunctionFinalize(SqlFunctionCtx* pCtx, SSDataBlock* pBlock) {
int32_t currentRow = pBlock->info.rows;
SColumnInfoData* pCol = taosArrayGet(pBlock->pDataBlock, slotId);
pEntryInfo->isNullRes = pEntryInfo->numOfRes == 0;
pEntryInfo->isNullRes = (pEntryInfo->numOfRes == 0) ? 1 : 0;
if (pCol->info.type == TSDB_DATA_TYPE_FLOAT) {
float v = *(double*)&pRes->v;