carbondata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chenliang...@apache.org
Subject [1/2] incubator-carbondata git commit: Fixed NPE issue in Query
Date Wed, 14 Dec 2016 04:06:59 GMT
Repository: incubator-carbondata
Updated Branches:
  refs/heads/branch-0.2 acdf0ae6e -> 9d6e26ada


Fixed NPE issue in Query


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

Branch: refs/heads/branch-0.2
Commit: cc195da3e62688b51eef22c704b37dc8b92cdee1
Parents: acdf0ae
Author: kumarvishal <kumarvishal.1802@gmail.com>
Authored: Wed Dec 14 11:39:21 2016 +0800
Committer: kumarvishal <kumarvishal.1802@gmail.com>
Committed: Wed Dec 14 11:39:47 2016 +0800

----------------------------------------------------------------------
 .../scan/result/iterator/AbstractDetailQueryResultIterator.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/cc195da3/core/src/main/java/org/apache/carbondata/scan/result/iterator/AbstractDetailQueryResultIterator.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/carbondata/scan/result/iterator/AbstractDetailQueryResultIterator.java
b/core/src/main/java/org/apache/carbondata/scan/result/iterator/AbstractDetailQueryResultIterator.java
index c8c61b0..07ccab4 100644
--- a/core/src/main/java/org/apache/carbondata/scan/result/iterator/AbstractDetailQueryResultIterator.java
+++ b/core/src/main/java/org/apache/carbondata/scan/result/iterator/AbstractDetailQueryResultIterator.java
@@ -114,7 +114,7 @@ public abstract class AbstractDetailQueryResultIterator extends CarbonIterator
{
       DataRefNodeFinder finder = new BTreeDataRefNodeFinder(blockInfo.getEachColumnValueSize());
       DataRefNode startDataBlock = finder
           .findFirstDataBlock(blockInfo.getDataBlock().getDataRefNode(), blockInfo.getStartKey());
-      while (startDataBlock.nodeNumber() != blockInfo.getStartBlockletIndex()) {
+      while (startDataBlock.nodeNumber() < blockInfo.getStartBlockletIndex()) {
         startDataBlock = startDataBlock.getNextDataRefNode();
       }
 


Mime
View raw message