fix bug
This commit is contained in:
parent
5e060605d8
commit
13db0579e0
|
@ -1569,7 +1569,9 @@ static void stddev_dst_function(SQLFunctionCtx *pCtx) {
|
||||||
avg = p->avg;
|
avg = p->avg;
|
||||||
} else { // todo opt performance by using iterator since the timestamp lsit is matched with the output result
|
} else { // todo opt performance by using iterator since the timestamp lsit is matched with the output result
|
||||||
SResPair* p = bsearch(&pCtx->startTs, resList->pData, len, sizeof(SResPair), tsCompare);
|
SResPair* p = bsearch(&pCtx->startTs, resList->pData, len, sizeof(SResPair), tsCompare);
|
||||||
assert(p != NULL);
|
if (p == NULL) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
avg = p->avg;
|
avg = p->avg;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue