KYLIN-1152 check whether ts column is empty

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

Branch: refs/heads/master
Commit: fc1d16c3f88dcd03afb58900ab02e1965940a54d
Parents: 26f1665
Author: shaofengshi <shaofeng...@apache.org>
Authored: Mon Nov 23 15:50:08 2015 +0800
Committer: shaofengshi <shaofeng...@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/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));

Reply via email to