You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by jh...@apache.org on 2016/07/31 06:18:26 UTC
[2/2] calcite git commit: [CALCITE-1043] RelOptUtil should check
SqlKind instead of operator instance (Minji Kim)
[CALCITE-1043] RelOptUtil should check SqlKind instead of operator instance (Minji Kim)
Close apache/calcite#262
Project: http://git-wip-us.apache.org/repos/asf/calcite/repo
Commit: http://git-wip-us.apache.org/repos/asf/calcite/commit/5c74b6b4
Tree: http://git-wip-us.apache.org/repos/asf/calcite/tree/5c74b6b4
Diff: http://git-wip-us.apache.org/repos/asf/calcite/diff/5c74b6b4
Branch: refs/heads/master
Commit: 5c74b6b41c33af466c0b1798101d84df56138725
Parents: 6d56222
Author: Minji Kim <mi...@dremio.com>
Authored: Thu Jul 28 16:22:43 2016 -0700
Committer: Julian Hyde <jh...@apache.org>
Committed: Sat Jul 30 11:47:31 2016 -0700
----------------------------------------------------------------------
core/src/main/java/org/apache/calcite/plan/RelOptUtil.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/calcite/blob/5c74b6b4/core/src/main/java/org/apache/calcite/plan/RelOptUtil.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/calcite/plan/RelOptUtil.java b/core/src/main/java/org/apache/calcite/plan/RelOptUtil.java
index d9d2a63..0340b1b 100644
--- a/core/src/main/java/org/apache/calcite/plan/RelOptUtil.java
+++ b/core/src/main/java/org/apache/calcite/plan/RelOptUtil.java
@@ -1263,7 +1263,7 @@ public abstract class RelOptUtil {
List<RexNode> nonEquiList) {
if (condition instanceof RexCall) {
RexCall call = (RexCall) condition;
- if (call.getOperator() == SqlStdOperatorTable.AND) {
+ if (call.getOperator().getKind() == SqlKind.AND) {
for (RexNode operand : call.getOperands()) {
splitCorrelatedFilterCondition(
filter,
@@ -1275,7 +1275,7 @@ public abstract class RelOptUtil {
return;
}
- if (call.getOperator() == SqlStdOperatorTable.EQUALS) {
+ if (call.getOperator().getKind() == SqlKind.EQUALS) {
final List<RexNode> operands = call.getOperands();
RexNode op0 = operands.get(0);
RexNode op1 = operands.get(1);
@@ -1310,7 +1310,7 @@ public abstract class RelOptUtil {
boolean extractCorrelatedFieldAccess) {
if (condition instanceof RexCall) {
RexCall call = (RexCall) condition;
- if (call.getOperator() == SqlStdOperatorTable.AND) {
+ if (call.getOperator().getKind() == SqlKind.AND) {
for (RexNode operand : call.getOperands()) {
splitCorrelatedFilterCondition(
filter,
@@ -1323,7 +1323,7 @@ public abstract class RelOptUtil {
return;
}
- if (call.getOperator() == SqlStdOperatorTable.EQUALS) {
+ if (call.getOperator().getKind() == SqlKind.EQUALS) {
final List<RexNode> operands = call.getOperands();
RexNode op0 = operands.get(0);
RexNode op1 = operands.get(1);