fix split window bug

This commit is contained in:
wangjiaming0909 2024-03-05 14:34:01 +08:00
parent 3c870acb16
commit f5f6306277
1 changed files with 1 additions and 1 deletions

View File

@ -6042,7 +6042,7 @@ static void tsmaOptSplitWindows(STSMAOptCtx* pTsmaOptCtx, const STimeWindow* pSc
}
// add head tsma if possible
if (!isSkeyAlignedWithTsma) {
if (!isSkeyAlignedWithTsma && scanRange.ekey >= endOfSkeyFirstWin - 1) {
scanRange.ekey = TMIN(
scanRange.ekey,
taosTimeAdd(startOfSkeyFirstWin, pInterval->interval * 1, pInterval->intervalUnit, pTsmaOptCtx->precision) - 1);