This is an automated email from the ASF dual-hosted git repository. zhaoc pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push: new 4cbce68 Add getValueFn and removeFn to properties (#3782) 4cbce68 is described below commit 4cbce687b72f836f49df3983f8706642cd930bb4 Author: HangyuanLiu <460660...@qq.com> AuthorDate: Sat Jun 6 11:34:32 2020 +0800 Add getValueFn and removeFn to properties (#3782) --- fe/src/main/java/org/apache/doris/catalog/AggregateFunction.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/fe/src/main/java/org/apache/doris/catalog/AggregateFunction.java b/fe/src/main/java/org/apache/doris/catalog/AggregateFunction.java index da6ffbe..f318cc2 100644 --- a/fe/src/main/java/org/apache/doris/catalog/AggregateFunction.java +++ b/fe/src/main/java/org/apache/doris/catalog/AggregateFunction.java @@ -464,6 +464,14 @@ public class AggregateFunction extends Function { properties.put(CreateFunctionStmt.MERGE_KEY, mergeFnSymbol); properties.put(CreateFunctionStmt.SERIALIZE_KEY, serializeFnSymbol); properties.put(CreateFunctionStmt.FINALIZE_KEY, finalizeFnSymbol); + + //getValueFn and removeFn may be null if not analytic agg + if (getValueFnSymbol != null) { + properties.put(CreateFunctionStmt.GET_VALUE_KEY, getValueFnSymbol); + } + if (removeFnSymbol != null) { + properties.put(CreateFunctionStmt.REMOVE_KEY, removeFnSymbol); + } return new Gson().toJson(properties); } } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org