diff --git a/src/execution/window_executor.cpp b/src/execution/window_executor.cpp index 339f5d1bc3a2..3372fbc509f1 100644 --- a/src/execution/window_executor.cpp +++ b/src/execution/window_executor.cpp @@ -309,7 +309,7 @@ static idx_t FindOrderedRangeBound(const WindowInputColumn &over, const OrderTyp struct WindowBoundariesState { static inline bool IsScalar(const unique_ptr &expr) { - return expr ? expr->IsScalar() : true; + return !expr || expr->IsScalar(); } static inline bool BoundaryNeedsPeer(const WindowBoundary &boundary) { @@ -1121,8 +1121,6 @@ class WindowAggregateExecutorLocalState : public WindowExecutorBoundsState { public: // state of aggregator unique_ptr aggregator_state; - - void NextRank(idx_t partition_begin, idx_t peer_begin, idx_t row_idx); }; unique_ptr