phoenix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajeshb...@apache.org
Subject phoenix git commit: PHOENIX-1856 Include min row key for each region in stats row -addendum(Ram)
Date Wed, 29 Apr 2015 20:35:09 GMT
Repository: phoenix
Updated Branches:
  refs/heads/master 864faba6d -> 902cf0de3


PHOENIX-1856 Include min row key for each region in stats row -addendum(Ram)


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

Branch: refs/heads/master
Commit: 902cf0de317db917ae320193ba51ec3588611ede
Parents: 864faba
Author: Rajeshbabu Chintaguntla <rajeshbabu@apache.org>
Authored: Thu Apr 30 02:05:14 2015 +0530
Committer: Rajeshbabu Chintaguntla <rajeshbabu@apache.org>
Committed: Thu Apr 30 02:05:14 2015 +0530

----------------------------------------------------------------------
 .../java/org/apache/phoenix/schema/stats/StatisticsCollector.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/902cf0de/phoenix-core/src/main/java/org/apache/phoenix/schema/stats/StatisticsCollector.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/schema/stats/StatisticsCollector.java
b/phoenix-core/src/main/java/org/apache/phoenix/schema/stats/StatisticsCollector.java
index 382cead..8e41d4e 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/schema/stats/StatisticsCollector.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/schema/stats/StatisticsCollector.java
@@ -169,7 +169,7 @@ public class StatisticsCollector {
             rowTracker = 
                     new ArrayList<GuidePostsInfo>();
         }
-        if (minKey == null) {
+        if (minKey == null && !results.isEmpty()) {
             Cell minCell = results.get(0);
             minKey = minCell.getRowArray();
             minKeyOffset =  minCell.getRowOffset();


Mime
View raw message