[td-3294]fix bug found by regression test.
This commit is contained in:
parent
4eeb83d1d7
commit
45acc9d30b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue