This is an automated email from the ASF dual-hosted git repository.

shaofengshi pushed a commit to branch 2.4.x
in repository https://gitbox.apache.org/repos/asf/kylin.git


The following commit(s) were added to refs/heads/2.4.x by this push:
     new af8719c  KYLIN-3494 ArrayIndexOutOfBoundsException may occur in 
streaming cube building
af8719c is described below

commit af8719c8cf0934a6fe58f4f35e89a62733ac42fb
Author: shaofengshi <shaofeng...@apache.org>
AuthorDate: Mon Jan 28 08:04:09 2019 +0800

    KYLIN-3494 ArrayIndexOutOfBoundsException may occur in streaming cube 
building
---
 .../src/main/java/org/apache/kylin/source/kafka/KafkaMRInput.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/source-kafka/src/main/java/org/apache/kylin/source/kafka/KafkaMRInput.java 
b/source-kafka/src/main/java/org/apache/kylin/source/kafka/KafkaMRInput.java
index bc2426d..ad37e7f 100644
--- a/source-kafka/src/main/java/org/apache/kylin/source/kafka/KafkaMRInput.java
+++ b/source-kafka/src/main/java/org/apache/kylin/source/kafka/KafkaMRInput.java
@@ -110,7 +110,7 @@ public class KafkaMRInput implements IMRInput {
         @Override
         public Collection<String[]> parseMapperInput(Object mapperInput) {
             Text text = (Text) mapperInput;
-            String[] columns  = Bytes.toString(text.getBytes(), 0, 
text.getLength()).split(delimiter);
+            String[] columns = Bytes.toString(text.getBytes(), 0, 
text.getLength()).split(delimiter, -1);
             return Collections.singletonList(columns);
         }
 

Reply via email to