simpilfy DruidConvertletTable.java, remove STANDARD_CONVERTLET declare (#7632)

This commit is contained in:
Xue Yu 2019-05-11 05:08:32 +08:00 committed by Gian Merlino
parent ca1a6649f6
commit f7b8b57c3b
1 changed files with 0 additions and 8 deletions

View File

@ -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<SqlOperator> CURRENT_TIME_CONVERTLET_OPERATORS =
ImmutableList.<SqlOperator>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;
}