You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@doris.apache.org by GitBox <gi...@apache.org> on 2019/07/19 14:41:12 UTC

[GitHub] [incubator-doris] imay opened a new issue #1520: Refactor storage aggregate_func.h

imay opened a new issue #1520: Refactor storage aggregate_func.h
URL: https://github.com/apache/incubator-doris/issues/1520
 
 
   I want to refactor be/src/olap/aggregate_func.h. Current implementation have some problems.
   
   Now, Storage maintain two function map, one for aggregate function, the other for finalize function. I want to introduce a new struct AggregateInfo to enclose these two functions. And then user only need get one object to use aggregate functions.
   
   And what's more, I want to introduce a new function init, then for an aggregate operation, there are three functions: init, update, finalize. Which is the same with query engine. And for many aggregate operations, there is no finalize operation.
   
   For handling null, current implementation is bad. First we use a byte to represent null, which is a waste; secondly our memory format likes `null_byte|column_value|null_byte|column_value`, which makes column_value is not aligned, which I think a harm for performance. However, in this patch I don't want to handle it. I will leave it and fix it in another patch.
   
   @kangkaisen 
   
   related to #1486 

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

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