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/27 07:31:54 UTC

[kylin] branch master updated: KYLIN-3494: Build cube with spark reports ArrayIndexOutOfBoundsException

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 b99beb6  KYLIN-3494: Build cube with spark reports ArrayIndexOutOfBoundsException
b99beb6 is described below

commit b99beb640f67bb2957ce770bf3bc2be2398d8c63
Author: Liu Shaohui <li...@xiaomi.com>
AuthorDate: Fri Jan 25 19:23:03 2019 +0800

    KYLIN-3494: Build cube with spark reports ArrayIndexOutOfBoundsException
---
 engine-spark/src/main/java/org/apache/kylin/engine/spark/SparkUtil.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/engine-spark/src/main/java/org/apache/kylin/engine/spark/SparkUtil.java b/engine-spark/src/main/java/org/apache/kylin/engine/spark/SparkUtil.java
index 151103a..5e7d66e 100644
--- a/engine-spark/src/main/java/org/apache/kylin/engine/spark/SparkUtil.java
+++ b/engine-spark/src/main/java/org/apache/kylin/engine/spark/SparkUtil.java
@@ -161,7 +161,7 @@ public class SparkUtil {
                     @Override
                     public String[] call(Text text) throws Exception {
                         String s = Bytes.toString(text.getBytes(), 0, text.getLength());
-                        return s.split(BatchConstants.SEQUENCE_FILE_DEFAULT_DELIMITER);
+                        return s.split(BatchConstants.SEQUENCE_FILE_DEFAULT_DELIMITER, -1);
                     }
                 });
     }