From 4cbce687b72f836f49df3983f8706642cd930bb4 Mon Sep 17 00:00:00 2001 From: HangyuanLiu <460660596@qq.com> Date: Sat, 6 Jun 2020 11:34:32 +0800 Subject: [PATCH] Add getValueFn and removeFn to properties (#3782) --- .../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 da6ffbe295..f318cc25cd 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); } }