Skip to content

Commit

Permalink
Add getValueFn and removeFn to properties (apache#3782)
Browse files Browse the repository at this point in the history
  • Loading branch information
HangyuanLiu authored Jun 6, 2020
1 parent 0f6e74f commit 4cbce68
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,14 @@ public String getProperties() {
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);
}
}
Expand Down

0 comments on commit 4cbce68

Please sign in to comment.