You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by jc...@apache.org on 2018/12/14 00:50:21 UTC

calcite git commit: [CALCITE-2673] Default implementation of SqlDialect should not support pushing all functions

Repository: calcite
Updated Branches:
  refs/heads/master b51dbdb99 -> f362785e1


[CALCITE-2673] Default implementation of SqlDialect should not support pushing all functions

* Adding ROW operator as supported by default


Project: http://git-wip-us.apache.org/repos/asf/calcite/repo
Commit: http://git-wip-us.apache.org/repos/asf/calcite/commit/f362785e
Tree: http://git-wip-us.apache.org/repos/asf/calcite/tree/f362785e
Diff: http://git-wip-us.apache.org/repos/asf/calcite/diff/f362785e

Branch: refs/heads/master
Commit: f362785e1f14d74f45a30223a49f927df4b7b0c6
Parents: b51dbdb
Author: Jesus Camacho Rodriguez <jc...@apache.org>
Authored: Thu Dec 13 16:46:39 2018 -0800
Committer: Jesus Camacho Rodriguez <jc...@apache.org>
Committed: Thu Dec 13 16:50:13 2018 -0800

----------------------------------------------------------------------
 core/src/main/java/org/apache/calcite/sql/SqlDialect.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/calcite/blob/f362785e/core/src/main/java/org/apache/calcite/sql/SqlDialect.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/calcite/sql/SqlDialect.java b/core/src/main/java/org/apache/calcite/sql/SqlDialect.java
index 819c9a9..f4de22d 100644
--- a/core/src/main/java/org/apache/calcite/sql/SqlDialect.java
+++ b/core/src/main/java/org/apache/calcite/sql/SqlDialect.java
@@ -120,6 +120,7 @@ public class SqlDialect {
           .add(SqlStdOperatorTable.POWER)
           .add(SqlStdOperatorTable.RAND)
           .add(SqlStdOperatorTable.ROUND)
+          .add(SqlStdOperatorTable.ROW)
           .add(SqlStdOperatorTable.SIN)
           .add(SqlStdOperatorTable.SQRT)
           .add(SqlStdOperatorTable.SUBSTRING)
@@ -679,6 +680,7 @@ public class SqlDialect {
     case NVL:
     case OR:
     case PLUS:
+    case ROW:
     case TIMES:
       return true;
     default: