DRILL-869: ExprParser fails when operators have space in name.

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

Branch: refs/heads/master
Commit: c6c3cd581f7ec845bf8b21ce1c776e2fecbab291
Parents: 21a3283
Author: vkorukanti <[email protected]>
Authored: Fri May 30 10:31:38 2014 -0700
Committer: Jacques Nadeau <[email protected]>
Committed: Thu Jun 5 09:35:02 2014 -0700

----------------------------------------------------------------------
 .../org/apache/drill/common/expression/FunctionCallFactory.java  | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/c6c3cd58/common/src/main/java/org/apache/drill/common/expression/FunctionCallFactory.java
----------------------------------------------------------------------
diff --git 
a/common/src/main/java/org/apache/drill/common/expression/FunctionCallFactory.java
 
b/common/src/main/java/org/apache/drill/common/expression/FunctionCallFactory.java
index 6e8e0f4..b619fd8 100644
--- 
a/common/src/main/java/org/apache/drill/common/expression/FunctionCallFactory.java
+++ 
b/common/src/main/java/org/apache/drill/common/expression/FunctionCallFactory.java
@@ -58,8 +58,12 @@ public class FunctionCallFactory {
     opToFuncTable.put("<>", "not_equal");
     opToFuncTable.put(">=", "greater_than_or_equal_to");
     opToFuncTable.put("<=", "less_than_or_equal_to");
+    opToFuncTable.put("is null", "isnull");
     opToFuncTable.put("is not null", "isnotnull");
     opToFuncTable.put("is true", "istrue");
+    opToFuncTable.put("is not true", "isnottrue");
+    opToFuncTable.put("is false", "isfalse");
+    opToFuncTable.put("is not false", "isnotfalse");
     
     opToFuncTable.put("!", "not");
     opToFuncTable.put("u-", "negative");

Reply via email to