Skip to content

Commit

Permalink
Merge pull request #1509 from kuzudb/varlen-sort
Browse files Browse the repository at this point in the history
Fix bug in var length queries sorting
  • Loading branch information
anuchak committed May 4, 2023
2 parents 7c7c9ae + 7e53a34 commit 6c9b8ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/processor/operator/recursive_extend/bfs_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ void BaseBFSMorsel::moveNextLevelAsCurrentLevel() {
currentLevel++;
nextNodeIdxToExtend = 0;
nextFrontier = createFrontier();
if (currentLevel == upperBound) { // No need to sort if we are not extending further.
if (currentLevel < upperBound) { // No need to sort if we are not extending further.
std::sort(currentFrontier->nodeOffsets.begin(), currentFrontier->nodeOffsets.end());
}
}
Expand Down

0 comments on commit 6c9b8ae

Please sign in to comment.