fix: set null when all inputs are null for leastsquare function

This commit is contained in:
shenglian zhou 2022-07-26 10:39:58 +08:00
parent 886c4c2feb
commit 662a9997c1
1 changed files with 1 additions and 0 deletions

View File

@ -2218,6 +2218,7 @@ int32_t leastSQRFinalize(SqlFunctionCtx* pCtx, SSDataBlock* pBlock) {
int32_t currentRow = pBlock->info.rows;
if (0 == pInfo->num) {
colDataAppendNULL(pCol, currentRow);
return 0;
}