mirror of https://github.com/apache/druid.git
simpilfy DruidConvertletTable.java, remove STANDARD_CONVERTLET declare (#7632)
This commit is contained in:
parent
ca1a6649f6
commit
f7b8b57c3b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue