[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) {
|
if (pRuntimeEnv->currentOffset == 0) {
|
||||||
return pBlock;
|
return pBlock;
|
||||||
} else if (pRuntimeEnv->currentOffset > pBlock->info.rows) {
|
} else if (pRuntimeEnv->currentOffset >= pBlock->info.rows) {
|
||||||
pRuntimeEnv->currentOffset -= pBlock->info.rows;
|
pRuntimeEnv->currentOffset -= pBlock->info.rows;
|
||||||
} else {
|
} else {
|
||||||
int32_t remain = (int32_t)(pBlock->info.rows - pRuntimeEnv->currentOffset);
|
int32_t remain = (int32_t)(pBlock->info.rows - pRuntimeEnv->currentOffset);
|
||||||
|
|
Loading…
Reference in New Issue