Repository: calcite
Updated Branches:
  refs/heads/master a8cb62b55 -> d83cb9029


[CALCITE-2253] Fix matching predicate for JdbcProjectRule rule

Was broken by [CALCITE-2206].

Close apache/calcite#664


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

Branch: refs/heads/master
Commit: d83cb9029e37c52fba7d07a5a33978a9f01b8c5f
Parents: a8cb62b
Author: Volodymyr Vysotskyi <vvo...@gmail.com>
Authored: Sat Apr 14 18:59:04 2018 +0300
Committer: Julian Hyde <jh...@apache.org>
Committed: Sun Apr 15 23:51:12 2018 -0700

----------------------------------------------------------------------
 core/src/main/java/org/apache/calcite/adapter/jdbc/JdbcRules.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/calcite/blob/d83cb902/core/src/main/java/org/apache/calcite/adapter/jdbc/JdbcRules.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/calcite/adapter/jdbc/JdbcRules.java 
b/core/src/main/java/org/apache/calcite/adapter/jdbc/JdbcRules.java
index dd0c461..a3dbd74 100644
--- a/core/src/main/java/org/apache/calcite/adapter/jdbc/JdbcRules.java
+++ b/core/src/main/java/org/apache/calcite/adapter/jdbc/JdbcRules.java
@@ -382,7 +382,7 @@ public class JdbcRules {
             public boolean test(@Nullable Project project) {
               assert project != null;
               return out.dialect.supportsWindowFunctions()
-                  && !RexOver.containsOver(project.getProjects(), null);
+                  || !RexOver.containsOver(project.getProjects(), null);
             }
           },
           Convention.NONE, out, relBuilderFactory, "JdbcProjectRule");

Reply via email to