morningman commented on a change in pull request #1739: Added MIN/MAX aggregate
function compatible with char/varchar
URL: https://github.com/apache/incubator-doris/pull/1739#discussion_r320539275
##########
File path: be/src/olap/aggregate_func.h
##########
@@ -203,6 +203,36 @@ struct AggregateFuncTraits<OLAP_FIELD_AGGREGATION_MIN,
OLAP_FIELD_TYPE_LARGEINT>
}
};
+template <>
+struct AggregateFuncTraits<OLAP_FIELD_AGGREGATION_MIN,
OLAP_FIELD_TYPE_VARCHAR> :
+ public AggregateFuncTraits<OLAP_FIELD_AGGREGATION_NONE,
OLAP_FIELD_TYPE_VARCHAR> {
+ static void update(RowCursorCell* dst, const RowCursorCell& src, Arena*
arena) {
+ bool src_null = src.is_null();
Review comment:
Oh, I see~
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]