From c1abaa46797744cf162a9947481b889d84e48fc6 Mon Sep 17 00:00:00 2001 From: Pxl Date: Fri, 6 Sep 2024 19:29:38 +0800 Subject: [PATCH] [Bug](map) fix wrong result on map_agg with streaming agg (#40471) pick from #40454 --- be/src/vec/aggregate_functions/aggregate_function_map.h | 1 + 1 file changed, 1 insertion(+) diff --git a/be/src/vec/aggregate_functions/aggregate_function_map.h b/be/src/vec/aggregate_functions/aggregate_function_map.h index befe0df162..e19ae83df4 100644 --- a/be/src/vec/aggregate_functions/aggregate_function_map.h +++ b/be/src/vec/aggregate_functions/aggregate_function_map.h @@ -248,6 +248,7 @@ public: Field key, value; columns[0]->get(i, key); if (key.is_null()) { + col.insert(Map {Array {}, Array {}}); continue; }