You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by li...@apache.org on 2023/04/27 02:45:19 UTC

[doris] branch branch-1.2-lts updated: [branch-1.2-lts] Support datetimeV2 for min/max-by

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

lihaopeng 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 a1cb52a7f4 [branch-1.2-lts] Support datetimeV2 for min/max-by
a1cb52a7f4 is described below

commit a1cb52a7f4516e3d0c286bb950ca8a022828a2d4
Author: zclllyybb <zh...@selectdb.com>
AuthorDate: Thu Apr 27 10:45:13 2023 +0800

    [branch-1.2-lts] Support datetimeV2 for min/max-by
---
 .../vec/aggregate_functions/aggregate_function_min_max_by.cpp  | 10 ++++++++++
 1 file changed, 10 insertions(+)

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 8967f130f5..41c73d1451 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
@@ -123,6 +123,16 @@ static IAggregateFunction* create_aggregate_function_min_max_by(const String& na
                                                          SingleValueDataDecimal<Decimal128I>>(
                 argument_types);
     }
+    if (which.idx == TypeIndex::DateV2) {
+        return create_aggregate_function_min_max_by_impl<AggregateFunctionTemplate, Data,
+                                                         SingleValueDataFixed<UInt32>>(
+                argument_types);
+    }
+    if (which.idx == TypeIndex::DateTimeV2) {
+        return create_aggregate_function_min_max_by_impl<AggregateFunctionTemplate, Data,
+                                                         SingleValueDataFixed<UInt64>>(
+                argument_types);
+    }
     return nullptr;
 }
 


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