Merge pull request #4824 from taosdata/hotfix/TD-2660
[TD-2660]<fix>:taosd crash when queried block has only one NULL record
This commit is contained in:
commit
929aa1f055
|
@ -1667,7 +1667,7 @@ static void rowwiseApplyFunctions(SQueryRuntimeEnv *pRuntimeEnv, SDataStatis *pS
|
||||||
|
|
||||||
_end:
|
_end:
|
||||||
assert(offset >= 0 && tsCols != NULL);
|
assert(offset >= 0 && tsCols != NULL);
|
||||||
if (prevTs != INT64_MIN) {
|
if (prevTs != INT64_MIN && prevTs != *(int64_t*)pRuntimeEnv->prevRow[0]) {
|
||||||
assert(prevRowIndex >= 0);
|
assert(prevRowIndex >= 0);
|
||||||
item->lastKey = prevTs + step;
|
item->lastKey = prevTs + step;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue