You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2022/12/18 12:36:46 UTC

[doris] branch branch-1.2-lts updated: [fix](decimalv3) Fix wrong argument for min_by/max_by (#15152)

This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-1.2-lts by this push:
     new b569a3bbdb [fix](decimalv3) Fix wrong argument for min_by/max_by (#15152)
b569a3bbdb is described below

commit b569a3bbdb80aa2085225583e529367b68c284ed
Author: Gabriel <ga...@gmail.com>
AuthorDate: Sun Dec 18 20:36:41 2022 +0800

    [fix](decimalv3) Fix wrong argument for min_by/max_by (#15152)
---
 be/src/vec/aggregate_functions/aggregate_function_min_max_by.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/be/src/vec/aggregate_functions/aggregate_function_min_max_by.cpp b/be/src/vec/aggregate_functions/aggregate_function_min_max_by.cpp
index ea513a26bb..8967f130f5 100644
--- a/be/src/vec/aggregate_functions/aggregate_function_min_max_by.cpp
+++ b/be/src/vec/aggregate_functions/aggregate_function_min_max_by.cpp
@@ -105,22 +105,22 @@ static IAggregateFunction* create_aggregate_function_min_max_by(const String& na
     }
     if (which.idx == TypeIndex::Decimal128) {
         return create_aggregate_function_min_max_by_impl<AggregateFunctionTemplate, Data,
-                                                         SingleValueDataFixed<DecimalV2Value>>(
+                                                         SingleValueDataDecimal<Decimal128>>(
                 argument_types);
     }
     if (which.idx == TypeIndex::Decimal32) {
         return create_aggregate_function_min_max_by_impl<AggregateFunctionTemplate, Data,
-                                                         SingleValueDataFixed<Int32>>(
+                                                         SingleValueDataDecimal<Decimal32>>(
                 argument_types);
     }
     if (which.idx == TypeIndex::Decimal64) {
         return create_aggregate_function_min_max_by_impl<AggregateFunctionTemplate, Data,
-                                                         SingleValueDataFixed<Int64>>(
+                                                         SingleValueDataDecimal<Decimal64>>(
                 argument_types);
     }
     if (which.idx == TypeIndex::Decimal128I) {
         return create_aggregate_function_min_max_by_impl<AggregateFunctionTemplate, Data,
-                                                         SingleValueDataFixed<Int128I>>(
+                                                         SingleValueDataDecimal<Decimal128I>>(
                 argument_types);
     }
     return nullptr;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org