fix: fix linear interpolation error

This commit is contained in:
Ganlin Zhao 2023-05-15 14:26:09 +08:00
parent 51d70ca274
commit b1ead824f8
1 changed files with 5 additions and 0 deletions

View File

@ -244,6 +244,11 @@ static bool genInterpolationResult(STimeSliceOperatorInfo* pSliceInfo, SExprSupp
break;
}
if (end.key != INT64_MIN && end.key < pSliceInfo->current) {
hasInterp = false;
break;
}
if (start.key == INT64_MIN || end.key == INT64_MIN) {
colDataSetNULL(pDst, rows);
break;