drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject [28/50] [abbrv] drill git commit: MD-719: Fix creating QueryConditions for JsonSubScanSpec
Date Tue, 13 Sep 2016 01:32:15 GMT
MD-719: Fix creating QueryConditions for JsonSubScanSpec


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

Branch: refs/heads/master
Commit: d41bfb3e111b3eeec503fdf921d8a3360614c3c5
Parents: 5d36f80
Author: Smidth Panchamia <spanchamia@mapr.com>
Authored: Wed Feb 17 23:51:26 2016 +0000
Committer: Aditya Kishore <adi@apache.org>
Committed: Fri Sep 9 10:08:35 2016 -0700

----------------------------------------------------------------------
 .../org/apache/drill/exec/store/maprdb/json/JsonSubScanSpec.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/d41bfb3e/contrib/format-maprdb/src/main/java/org/apache/drill/exec/store/maprdb/json/JsonSubScanSpec.java
----------------------------------------------------------------------
diff --git a/contrib/format-maprdb/src/main/java/org/apache/drill/exec/store/maprdb/json/JsonSubScanSpec.java
b/contrib/format-maprdb/src/main/java/org/apache/drill/exec/store/maprdb/json/JsonSubScanSpec.java
index 936002d..adb8014 100644
--- a/contrib/format-maprdb/src/main/java/org/apache/drill/exec/store/maprdb/json/JsonSubScanSpec.java
+++ b/contrib/format-maprdb/src/main/java/org/apache/drill/exec/store/maprdb/json/JsonSubScanSpec.java
@@ -44,7 +44,7 @@ public class JsonSubScanSpec extends MapRDBSubScanSpec {
         this.condition.is(DocumentConstants.ID_FIELD, Op.GREATER_OR_EQUAL, startVal.getBinary());
         break;
       case STRING:
-        this.condition.is(DocumentConstants.ID_FIELD, Op.LESS, startVal.getString());
+        this.condition.is(DocumentConstants.ID_FIELD, Op.GREATER_OR_EQUAL, startVal.getString());
         break;
       default:
         throw new IllegalStateException("Encountered an unsupported type " + startVal.getType()
@@ -58,7 +58,7 @@ public class JsonSubScanSpec extends MapRDBSubScanSpec {
       
       switch(stopVal.getType()) {
       case BINARY:
-        this.condition.is(DocumentConstants.ID_FIELD, Op.GREATER_OR_EQUAL, stopVal.getBinary());
+        this.condition.is(DocumentConstants.ID_FIELD, Op.LESS, stopVal.getBinary());
         break;
       case STRING:
         this.condition.is(DocumentConstants.ID_FIELD, Op.LESS, stopVal.getString());


Mime
View raw message