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 2022/07/29 06:46:55 UTC

[GitHub] [doris] HappenLee commented on a diff in pull request #11308: [Bug][Function] core dump on sum(distinct)

HappenLee commented on code in PR #11308:
URL: https://github.com/apache/doris/pull/11308#discussion_r932919332


##########
be/src/vec/aggregate_functions/aggregate_function_distinct.h:
##########
@@ -171,7 +171,11 @@ class AggregateFunctionDistinct
             : IAggregateFunctionDataHelper<Data, AggregateFunctionDistinct>(
                       arguments, nested_func_->get_parameters()),
               nested_func(nested_func_),
-              arguments_num(arguments.size()) {}
+              arguments_num(arguments.size()) {
+        size_t nested_size = nested_func->size_of_data();

Review Comment:
   use `align_of_data()`



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