kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liy...@apache.org
Subject [31/50] incubator-kylin git commit: KYLIN-512 fix min(cal_dt) issue: endpoint side null pointer
Date Sat, 31 Jan 2015 12:01:58 GMT
KYLIN-512 fix min(cal_dt) issue: endpoint side null pointer


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

Branch: refs/heads/inverted-index
Commit: dc000e26c36d5aea642698cadc7e4b126b71e63a
Parents: f866c82
Author: honma <honma@ebay.com>
Authored: Wed Jan 28 18:51:10 2015 +0800
Committer: honma <honma@ebay.com>
Committed: Wed Jan 28 18:51:20 2015 +0800

----------------------------------------------------------------------
 .../kylinolap/metadata/measure/fixedlen/FixedPointLongCodec.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/dc000e26/metadata/src/main/java/com/kylinolap/metadata/measure/fixedlen/FixedPointLongCodec.java
----------------------------------------------------------------------
diff --git a/metadata/src/main/java/com/kylinolap/metadata/measure/fixedlen/FixedPointLongCodec.java
b/metadata/src/main/java/com/kylinolap/metadata/measure/fixedlen/FixedPointLongCodec.java
index 057a68a..bfffd2c 100644
--- a/metadata/src/main/java/com/kylinolap/metadata/measure/fixedlen/FixedPointLongCodec.java
+++ b/metadata/src/main/java/com/kylinolap/metadata/measure/fixedlen/FixedPointLongCodec.java
@@ -58,6 +58,6 @@ public class FixedPointLongCodec extends FixedLenMeasureCodec<LongWritable>
{
 
     @Override
     public void write(LongWritable v, byte[] buf, int offset) {
-        BytesUtil.writeLong(v.get(), buf, offset, SIZE);
+        BytesUtil.writeLong(v == null ? 0 : v.get(), buf, offset, SIZE);
     }
 }


Mime
View raw message