From e1b310ff354427079ebb8dd4977d6ae471370bd3 Mon Sep 17 00:00:00 2001 From: PHILO-HE Date: Tue, 27 Feb 2024 21:58:43 +0800 Subject: [PATCH] Add break --- velox/exec/Window.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/velox/exec/Window.cpp b/velox/exec/Window.cpp index 2955ed3cbae6..9e288f70b9a1 100644 --- a/velox/exec/Window.cpp +++ b/velox/exec/Window.cpp @@ -305,6 +305,7 @@ void Window::updateKRowsFrameBounds( for (int i = 0; i < numRows; i++) { if (startValue != (int32_t)startValue) { std::fill(rawFrameBounds + i, rawFrameBounds + numRows, numRows - 1); + break; } else { *(rawFrameBounds + i) = startValue; }