From b6589ad80c4502eb3dd22ba03e74e084f7f36410 Mon Sep 17 00:00:00 2001 From: Pxl Date: Fri, 6 Sep 2024 11:22:22 +0800 Subject: [PATCH] [Bug](map) fix wrong result on map_agg with streaming agg (#40454) fix wrong result on map_agg with streaming agg --- 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 83e96a8d236839..d56cbf21f31136 100644 --- a/be/src/vec/aggregate_functions/aggregate_function_map.h +++ b/be/src/vec/aggregate_functions/aggregate_function_map.h @@ -254,6 +254,7 @@ class AggregateFunctionMapAgg final Field key, value; columns[0]->get(i, key); if (key.is_null()) { + col.insert(Map {Array {}, Array {}}); continue; }