Skip to content

Commit

Permalink
Merge pull request #1702 from kuzudb/fix-string-copy
Browse files Browse the repository at this point in the history
Fix string pk copy
  • Loading branch information
ray6080 committed Jun 21, 2023
2 parents c37c9bb + 75617bb commit 74ddc68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/processor/operator/copy/copy_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ void CopyNode::appendToPKIndex<common::ku_string_t, storage::InMemOverflowFile*>
storage::InMemOverflowFile* overflowFile) {
for (auto i = 0u; i < numValues; i++) {
auto offset = i + startOffset;
auto value = chunk->getValue<common::ku_string_t>(offset);
auto value = chunk->getValue<common::ku_string_t>(i);
auto key = overflowFile->readString(&value);
sharedState->pkIndex->append(key.c_str(), offset);
}
Expand Down

0 comments on commit 74ddc68

Please sign in to comment.