Skip to content

Commit

Permalink
fix numNodes in CopyNode
Browse files Browse the repository at this point in the history
  • Loading branch information
ray6080 committed Oct 7, 2023
1 parent 4aa1d07 commit c6116f1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/processor/operator/persistent/copy_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,9 @@ void CopyNode::checkNonNullConstraint(NullColumnChunk* nullChunk, offset_t numNo
}

void CopyNode::finalize(ExecutionContext* context) {
uint64_t numNodes = 0;
uint64_t numNodes = StorageUtils::getStartOffsetOfNodeGroup(sharedState->getCurNodeGroupIdx());
if (sharedState->sharedNodeGroup) {
numNodes = StorageUtils::getStartOffsetOfNodeGroup(sharedState->getCurNodeGroupIdx()) +
sharedState->sharedNodeGroup->getNumNodes();
numNodes += sharedState->sharedNodeGroup->getNumNodes();
auto nodeGroupIdx = sharedState->getNextNodeGroupIdx();
writeAndResetNodeGroup(nodeGroupIdx, sharedState->pkIndex.get(), sharedState->pkColumnID,
sharedState->table, sharedState->sharedNodeGroup.get(), sharedState->isCopyRdf);
Expand Down

0 comments on commit c6116f1

Please sign in to comment.