Skip to content

Commit

Permalink
Adjust for preceding
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILO-HE committed Dec 10, 2024
1 parent aa67d02 commit 14c2e84
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions velox/exec/WindowPartition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,7 @@ void WindowPartition::updateKRangeFrameBounds(
mappedFrameColumn,
flags);
if (compareResult <= 0) {
start = lastFoundIndex == -1
? 0
: std::min(lastFoundIndex, numRows - 1);
start = lastFoundIndex == -1 ? 0 : lastFoundIndex;
} else {
start = 0;
}
Expand Down

0 comments on commit 14c2e84

Please sign in to comment.