You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by vl...@apache.org on 2018/09/21 20:08:01 UTC
calcite git commit: [CALCITE-2562] Remove dead code in
StandardConvertletTable#convertDatetimeMinus
Repository: calcite
Updated Branches:
refs/heads/master ef8226076 -> 17e0a0542
[CALCITE-2562] Remove dead code in StandardConvertletTable#convertDatetimeMinus
Project: http://git-wip-us.apache.org/repos/asf/calcite/repo
Commit: http://git-wip-us.apache.org/repos/asf/calcite/commit/17e0a054
Tree: http://git-wip-us.apache.org/repos/asf/calcite/tree/17e0a054
Diff: http://git-wip-us.apache.org/repos/asf/calcite/diff/17e0a054
Branch: refs/heads/master
Commit: 17e0a054259f10079ce9c95fa01f447e41a84577
Parents: ef82260
Author: Vladimir Sitnikov <si...@gmail.com>
Authored: Fri Sep 21 23:07:54 2018 +0300
Committer: Vladimir Sitnikov <si...@gmail.com>
Committed: Fri Sep 21 23:07:54 2018 +0300
----------------------------------------------------------------------
.../calcite/sql2rel/StandardConvertletTable.java | 15 ---------------
1 file changed, 15 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/calcite/blob/17e0a054/core/src/main/java/org/apache/calcite/sql2rel/StandardConvertletTable.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/calcite/sql2rel/StandardConvertletTable.java b/core/src/main/java/org/apache/calcite/sql2rel/StandardConvertletTable.java
index 987e821..470a602 100644
--- a/core/src/main/java/org/apache/calcite/sql2rel/StandardConvertletTable.java
+++ b/core/src/main/java/org/apache/calcite/sql2rel/StandardConvertletTable.java
@@ -620,21 +620,6 @@ public class StandardConvertletTable extends ReflectiveConvertletTable {
final List<RexNode> exprs = convertExpressionList(cx, operands,
SqlOperandTypeChecker.Consistency.NONE);
- RelDataType int8Type =
- cx.getTypeFactory().createSqlType(SqlTypeName.BIGINT);
- final RexNode[] casts = new RexNode[2];
- casts[0] =
- rexBuilder.makeCast(
- cx.getTypeFactory().createTypeWithNullability(
- int8Type,
- exprs.get(0).getType().isNullable()),
- exprs.get(0));
- casts[1] =
- rexBuilder.makeCast(
- cx.getTypeFactory().createTypeWithNullability(
- int8Type,
- exprs.get(1).getType().isNullable()),
- exprs.get(1));
final RelDataType resType =
cx.getValidator().getValidatedNodeType(call);
return rexBuilder.makeCall(resType, op, exprs.subList(0, 2));