chenhao7253886 commented on a change in pull request #832: Support hll_raw_agg
in Aggregate Function
URL: https://github.com/apache/incubator-doris/pull/832#discussion_r270060225
##########
File path: be/src/exprs/aggregate_functions.cpp
##########
@@ -1241,6 +1241,38 @@ int64_t AggregateFunctions::hll_algorithm(const
doris_udf::StringVal& src) {
return (int64_t)(estimate + 0.5);
}
+void AggregateFunctions::hll_raw_agg_init(
+ FunctionContext* ctx,
+ StringVal* dst) {
+ hll_union_agg_init(ctx, dst);
+}
Review comment:
All calculations can be based on full type, so dst will be initted to a hll
full type .
----------------------------------------------------------------
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]