Skip to content

Commit

Permalink
[Enhancement] Add Trino HLL Function Compatibility Mapping and last_d…
Browse files Browse the repository at this point in the history
…ay_of_month Support(StarRocks#40894)

Signed-off-by: happut <[email protected]>
  • Loading branch information
happut committed Jun 26, 2024
1 parent 9e1451f commit ea1d960
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,11 +350,7 @@ private static void registerFunctionTransformerWithVarArgs(String trinoFnName, S
private static void registerFunctionTransformer(String trinoFnName, int trinoFnArgNums,
FunctionCallExpr starRocksFunctionCall) {
FunctionCallTransformer transformer;
if (trinoFnArgNums == 0) {
transformer = new FunctionCallTransformer(starRocksFunctionCall, false);
} else {
transformer = new FunctionCallTransformer(starRocksFunctionCall, trinoFnArgNums);
}
transformer = new FunctionCallTransformer(starRocksFunctionCall, trinoFnArgNums);

List<FunctionCallTransformer> transformerList = TRANSFORMER_MAP.computeIfAbsent(trinoFnName,
k -> Lists.newArrayList());
Expand Down

0 comments on commit ea1d960

Please sign in to comment.