You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by sh...@apache.org on 2015/11/23 08:50:33 UTC

incubator-kylin git commit: KYLIN-1152 check whether ts column is empty

Repository: incubator-kylin
Updated Branches:
  refs/heads/1.x-staging 26f1665e2 -> fc1d16c3f


KYLIN-1152 check whether ts column is empty

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

Branch: refs/heads/1.x-staging
Commit: fc1d16c3f88dcd03afb58900ab02e1965940a54d
Parents: 26f1665
Author: shaofengshi <sh...@apache.org>
Authored: Mon Nov 23 15:50:08 2015 +0800
Committer: shaofengshi <sh...@apache.org>
Committed: Mon Nov 23 15:50:08 2015 +0800

----------------------------------------------------------------------
 .../org/apache/kylin/common/persistence/HBaseResourceStore.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/fc1d16c3/common/src/main/java/org/apache/kylin/common/persistence/HBaseResourceStore.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/kylin/common/persistence/HBaseResourceStore.java b/common/src/main/java/org/apache/kylin/common/persistence/HBaseResourceStore.java
index 23dd831..ac14e7b 100644
--- a/common/src/main/java/org/apache/kylin/common/persistence/HBaseResourceStore.java
+++ b/common/src/main/java/org/apache/kylin/common/persistence/HBaseResourceStore.java
@@ -184,7 +184,7 @@ public class HBaseResourceStore extends ResourceStore {
     }
 
     private long getTimestamp(Result r) {
-        if (r == null) {
+        if (r == null || r.getValue(B_FAMILY, B_COLUMN_TS) == null) {
             return 0;
         } else {
             return Bytes.toLong(r.getValue(B_FAMILY, B_COLUMN_TS));