From f7b8b57c3b294148a27eda150529cb51ee01625f Mon Sep 17 00:00:00 2001 From: Xue Yu <278006819@qq.com> Date: Sat, 11 May 2019 05:08:32 +0800 Subject: [PATCH] simpilfy DruidConvertletTable.java, remove STANDARD_CONVERTLET declare (#7632) --- .../druid/sql/calcite/planner/DruidConvertletTable.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sql/src/main/java/org/apache/druid/sql/calcite/planner/DruidConvertletTable.java b/sql/src/main/java/org/apache/druid/sql/calcite/planner/DruidConvertletTable.java index 9b1b8ee8a6e..1d94905c693 100644 --- a/sql/src/main/java/org/apache/druid/sql/calcite/planner/DruidConvertletTable.java +++ b/sql/src/main/java/org/apache/druid/sql/calcite/planner/DruidConvertletTable.java @@ -42,10 +42,6 @@ public class DruidConvertletTable implements SqlRexConvertletTable // Apply a convertlet that doesn't do anything other than a "dumb" call translation. private static final SqlRexConvertlet BYPASS_CONVERTLET = StandardConvertletTable.INSTANCE::convertCall; - // Apply the default convertlet found in StandardConvertletTable, which may do "smart" things. - private static final SqlRexConvertlet STANDARD_CONVERTLET = - (cx, call) -> StandardConvertletTable.INSTANCE.get(call).convertCall(cx, call); - private static final List CURRENT_TIME_CONVERTLET_OPERATORS = ImmutableList.builder() .add(SqlStdOperatorTable.CURRENT_TIMESTAMP) @@ -113,10 +109,6 @@ public class DruidConvertletTable implements SqlRexConvertletTable table.put(operator, currentTimestampAndFriends); } - for (SqlOperator operator : STANDARD_CONVERTLET_OPERATORS) { - table.put(operator, STANDARD_CONVERTLET); - } - return table; }