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 2019/01/28 00:08:16 UTC

[kylin] branch master updated: KYLIN-3494 ArrayIndexOutOfBoundsException may occur in streaming cube building

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 d678fe7  KYLIN-3494 ArrayIndexOutOfBoundsException may occur in streaming cube building
d678fe7 is described below

commit d678fe715c9be8a9d821bf54cca435ce406670fd
Author: shaofengshi <sh...@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 d709572..6f99e29 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
@@ -87,7 +87,7 @@ public class KafkaMRInput extends KafkaInputBase 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);
         }