imay commented on a change in pull request #1432: Add percentile_approx
aggregate function
URL: https://github.com/apache/incubator-doris/pull/1432#discussion_r302100579
##########
File path: be/src/exprs/aggregate_functions.cpp
##########
@@ -231,6 +232,81 @@ void AggregateFunctions::avg_update(FunctionContext* ctx,
const T& src, StringVa
++avg->count;
}
+struct PercentileApproxState {
+public:
+ PercentileApproxState() {
Review comment:
use Initializer list
```suggestion
PercentileApproxState() : digest(new TDigest()) {
```
----------------------------------------------------------------
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]