Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 77C4D200BA7 for ; Tue, 13 Sep 2016 03:31:51 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 76A05160ADF; Tue, 13 Sep 2016 01:31:51 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C0FF6160AD9 for ; Tue, 13 Sep 2016 03:31:50 +0200 (CEST) Received: (qmail 15255 invoked by uid 500); 13 Sep 2016 01:31:49 -0000 Mailing-List: contact commits-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: commits@drill.apache.org Delivered-To: mailing list commits@drill.apache.org Received: (qmail 14462 invoked by uid 99); 13 Sep 2016 01:31:48 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Sep 2016 01:31:48 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id AC72DE09C6; Tue, 13 Sep 2016 01:31:48 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: adi@apache.org To: commits@drill.apache.org Date: Tue, 13 Sep 2016 01:32:15 -0000 Message-Id: <50e66339f21f46668f9396136a1233a2@git.apache.org> In-Reply-To: <12bc6f8dff7b420fa5513c35113a14e5@git.apache.org> References: <12bc6f8dff7b420fa5513c35113a14e5@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [28/50] [abbrv] drill git commit: MD-719: Fix creating QueryConditions for JsonSubScanSpec archived-at: Tue, 13 Sep 2016 01:31:51 -0000 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 Authored: Wed Feb 17 23:51:26 2016 +0000 Committer: Aditya Kishore 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());