diff --git a/source/libs/executor/src/executil.c b/source/libs/executor/src/executil.c index 040e67713d370fcae4b8893fbf7d3b69b71a4e71..b2d2a069538c903c21ac5a0b42e795d8ff4e55a8 100644 --- a/source/libs/executor/src/executil.c +++ b/source/libs/executor/src/executil.c @@ -1696,7 +1696,7 @@ static void getInitialStartTimeWindow(SInterval* pInterval, TSKEY ts, STimeWindo int64_t key = w->skey; while (key < ts) { // moving towards end key = taosTimeAdd(key, pInterval->sliding, pInterval->slidingUnit, pInterval->precision); - if (key >= ts) { + if (key > ts) { break; }