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 2018/04/04 15:29:31 UTC
[kylin] branch master updated: KYLIN-3296 Fix the split rowkey
problem
This is an automated email from the ASF dual-hosted git repository.
shaofengshi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kylin.git
The following commit(s) were added to refs/heads/master by this push:
new be3588b KYLIN-3296 Fix the split rowkey problem
be3588b is described below
commit be3588b7f177d6621a09fefe3ad458499ceac97d
Author: renzhimin3 <re...@jd.com>
AuthorDate: Sat Mar 24 06:25:23 2018 +0800
KYLIN-3296 Fix the split rowkey problem
Signed-off-by: shaofengshi <sh...@apache.org>
---
.../src/main/java/org/apache/kylin/cube/common/RowKeySplitter.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/core-cube/src/main/java/org/apache/kylin/cube/common/RowKeySplitter.java b/core-cube/src/main/java/org/apache/kylin/cube/common/RowKeySplitter.java
index 0c54ecf..9286fba 100644
--- a/core-cube/src/main/java/org/apache/kylin/cube/common/RowKeySplitter.java
+++ b/core-cube/src/main/java/org/apache/kylin/cube/common/RowKeySplitter.java
@@ -124,6 +124,8 @@ public class RowKeySplitter implements java.io.Serializable {
int colLength = colIO.getColumnLength(col);
SplittedBytes split = this.splitBuffers[this.bufferSize++];
split.length = colLength;
+ if(split.length > split.value.length)
+ split.value = new byte[split.length];
System.arraycopy(bytes, offset, split.value, 0, colLength);
offset += colLength;
}
--
To stop receiving notification emails like this one, please contact
shaofengshi@apache.org.