From 0e3f288e61e04ba1aaf121a33c3049bd7ec3c513 Mon Sep 17 00:00:00 2001 From: happut Date: Wed, 26 Jun 2024 11:34:25 +0800 Subject: [PATCH] [Enhancement] Add Trino HLL Function Compatibility Mapping and last_day_of_month Support(StarRocks#40894) Signed-off-by: happut --- .../parser/trino/Trino2SRFunctionCallTransformer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fe/fe-core/src/main/java/com/starrocks/connector/parser/trino/Trino2SRFunctionCallTransformer.java b/fe/fe-core/src/main/java/com/starrocks/connector/parser/trino/Trino2SRFunctionCallTransformer.java index de227e1695285..e582ee422cc79 100644 --- a/fe/fe-core/src/main/java/com/starrocks/connector/parser/trino/Trino2SRFunctionCallTransformer.java +++ b/fe/fe-core/src/main/java/com/starrocks/connector/parser/trino/Trino2SRFunctionCallTransformer.java @@ -349,8 +349,7 @@ private static void registerFunctionTransformerWithVarArgs(String trinoFnName, S private static void registerFunctionTransformer(String trinoFnName, int trinoFnArgNums, FunctionCallExpr starRocksFunctionCall) { - FunctionCallTransformer transformer; - transformer = new FunctionCallTransformer(starRocksFunctionCall, trinoFnArgNums); + FunctionCallTransformer transformer = new FunctionCallTransformer(starRocksFunctionCall, trinoFnArgNums); List transformerList = TRANSFORMER_MAP.computeIfAbsent(trinoFnName, k -> Lists.newArrayList());