From ea1d960c180fa36ee83ba2cb065b5ba259af3cde Mon Sep 17 00:00:00 2001 From: happut Date: Wed, 26 Jun 2024 11:12:57 +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 | 6 +----- 1 file changed, 1 insertion(+), 5 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 351eb094aa11b..de227e1695285 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 @@ -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 transformerList = TRANSFORMER_MAP.computeIfAbsent(trinoFnName, k -> Lists.newArrayList());