This is an automated email from the ASF dual-hosted git repository.
gabriellee pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 2e40e45a1b4 [fix](avg) Fix wrong average result (#59831)
2e40e45a1b4 is described below
commit 2e40e45a1b4a61e2d46cf349c0af96f959209278
Author: Gabriel <[email protected]>
AuthorDate: Wed Jan 14 10:20:02 2026 +0800
[fix](avg) Fix wrong average result (#59831)
Introduced by #59669
---
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 d48128a7133..ff8e6b9b58f 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;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]