You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by gi...@apache.org on 2019/05/10 21:08:40 UTC

[incubator-druid] branch master updated: simpilfy DruidConvertletTable.java, remove STANDARD_CONVERTLET declare (#7632)

This is an automated email from the ASF dual-hosted git repository.

gian pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-druid.git


The following commit(s) were added to refs/heads/master by this push:
     new f7b8b57  simpilfy DruidConvertletTable.java, remove STANDARD_CONVERTLET declare (#7632)
f7b8b57 is described below

commit f7b8b57c3b294148a27eda150529cb51ee01625f
Author: Xue Yu <27...@qq.com>
AuthorDate: Sat May 11 05:08:32 2019 +0800

    simpilfy DruidConvertletTable.java, remove STANDARD_CONVERTLET declare (#7632)
---
 .../apache/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 9b1b8ee..1d94905 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<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;
   }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org