You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2021/08/12 08:53:58 UTC

[GitHub] [incubator-doris] e0c9 commented on a change in pull request #6410: [Feature] Support exact percentile aggregate function

e0c9 commented on a change in pull request #6410:
URL: https://github.com/apache/incubator-doris/pull/6410#discussion_r687519693



##########
File path: be/src/exprs/aggregate_functions.cpp
##########
@@ -172,6 +173,79 @@ void AggregateFunctions::count_remove(FunctionContext*, const AnyVal& src, BigIn
     }
 }
 
+struct PercentileState {
+    PercentileState() : counts(new Counts()) {}
+    ~PercentileState() { delete counts; }
+
+    Counts* counts = nullptr;

Review comment:
       because the pointer only occupies 8 bytes




-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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