From 1eb21a6594fec12f20095806ff553da55199121a Mon Sep 17 00:00:00 2001 From: Gabriel Date: Tue, 13 Jan 2026 17:56:47 +0800 Subject: [PATCH] [fix](avg) Fix wrong average result --- be/src/vec/aggregate_functions/aggregate_function_avg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/be/src/vec/aggregate_functions/aggregate_function_avg.cpp b/be/src/vec/aggregate_functions/aggregate_function_avg.cpp index d48128a7133bd7..ff8e6b9b58fba9 100644 --- a/be/src/vec/aggregate_functions/aggregate_function_avg.cpp +++ b/be/src/vec/aggregate_functions/aggregate_function_avg.cpp @@ -29,7 +29,7 @@ namespace doris::vectorized { #include "common/compile_check_begin.h" constexpr PrimitiveType result_type(PrimitiveType T) { - if (T == TYPE_LARGEINT) { + if (T == TYPE_LARGEINT || T == TYPE_BIGINT) { return TYPE_LARGEINT; } else if (is_int_or_bool(T)) { return TYPE_BIGINT;