fix(query): fix infinite interpolation results generated when sliding

window is smaller than interval window in descending time order
This commit is contained in:
Ganlin Zhao 2022-10-08 18:28:09 +08:00
parent 2f3536bacd
commit e9f30db0ab
1 changed files with 1 additions and 1 deletions

View File

@ -583,7 +583,7 @@ int64_t getNumOfResultsAfterFillGap(SFillInfo* pFillInfo, TSKEY ekey, int32_t ma
numOfRes += 1;
assert(numOfRes >= numOfRows);
} else { // reach the end of data
if ((ekey1 <= pFillInfo->currentKey && FILL_IS_ASC_FILL(pFillInfo)) ||
if ((ekey1 < pFillInfo->currentKey && FILL_IS_ASC_FILL(pFillInfo)) ||
(ekey1 >= pFillInfo->currentKey && !FILL_IS_ASC_FILL(pFillInfo))) {
return 0;
}