fix the bug of incorrect ROWNUM in partition table

This commit is contained in:
zhouxiongjia
2021-07-07 15:09:59 +08:00
parent 0236725f3f
commit 4e880ba2ab
3 changed files with 185 additions and 0 deletions

View File

@ -141,6 +141,7 @@ TupleTableSlot* ExecPartIterator(PartIteratorState* node)
if (!TupIsNull(slot))
return slot;
node->ps.lefttree->ps_rownum--;
/* switch to next partition until we get a unempty tuple */
for (;;) {
if (node->currentItr + 1 >= partitionScan) /* have scanned all partitions */