fix split window bug
This commit is contained in:
parent
3c870acb16
commit
f5f6306277
|
@ -6042,7 +6042,7 @@ static void tsmaOptSplitWindows(STSMAOptCtx* pTsmaOptCtx, const STimeWindow* pSc
|
||||||
}
|
}
|
||||||
|
|
||||||
// add head tsma if possible
|
// add head tsma if possible
|
||||||
if (!isSkeyAlignedWithTsma) {
|
if (!isSkeyAlignedWithTsma && scanRange.ekey >= endOfSkeyFirstWin - 1) {
|
||||||
scanRange.ekey = TMIN(
|
scanRange.ekey = TMIN(
|
||||||
scanRange.ekey,
|
scanRange.ekey,
|
||||||
taosTimeAdd(startOfSkeyFirstWin, pInterval->interval * 1, pInterval->intervalUnit, pTsmaOptCtx->precision) - 1);
|
taosTimeAdd(startOfSkeyFirstWin, pInterval->interval * 1, pInterval->intervalUnit, pTsmaOptCtx->precision) - 1);
|
||||||
|
|
Loading…
Reference in New Issue