[td-3294]fix bug found by regression test.

This commit is contained in:
Haojun Liao 2021-03-13 23:15:32 +08:00
parent 4eeb83d1d7
commit 45acc9d30b
1 changed files with 1 additions and 1 deletions

View File

@ -4564,7 +4564,7 @@ static SSDataBlock* doOffset(void* param) {
if (pRuntimeEnv->currentOffset == 0) {
return pBlock;
} else if (pRuntimeEnv->currentOffset > pBlock->info.rows) {
} else if (pRuntimeEnv->currentOffset >= pBlock->info.rows) {
pRuntimeEnv->currentOffset -= pBlock->info.rows;
} else {
int32_t remain = (int32_t)(pBlock->info.rows - pRuntimeEnv->currentOffset);