From 33f54a8fdae65d9dc55797542b77913a1db4cc26 Mon Sep 17 00:00:00 2001 From: Richard Wesley <13156216+hawkfish@users.noreply.github.com> Date: Tue, 28 May 2024 16:11:29 -0700 Subject: [PATCH] Issue #12171: Streaming Window FILTER Don't initialise argument chunks for COUNT(*). --- .../operator/aggregate/physical_streaming_window.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/execution/operator/aggregate/physical_streaming_window.cpp b/src/execution/operator/aggregate/physical_streaming_window.cpp index 2eee389f178..aad0c0b3034 100644 --- a/src/execution/operator/aggregate/physical_streaming_window.cpp +++ b/src/execution/operator/aggregate/physical_streaming_window.cpp @@ -61,8 +61,10 @@ class StreamingWindowState : public OperatorState { for (auto &child : wexpr.children) { arg_types.push_back(child->return_type); } - arg_chunk.Initialize(allocator, arg_types); - arg_cursor.Initialize(allocator, arg_types); + if (!arg_types.empty()) { + arg_chunk.Initialize(allocator, arg_types); + arg_cursor.Initialize(allocator, arg_types); + } if (wexpr.filter_expr) { filter_sel.Initialize(); }