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

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


The following commit(s) were added to refs/heads/2.6.x by this push:
     new b2a310f  KYLIN-3494: Build cube with spark reports 
ArrayIndexOutOfBoundsException
b2a310f is described below

commit b2a310f5184994be539582818cf30bf89283ba85
Author: Liu Shaohui <liushao...@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);
                     }
                 });
     }

Reply via email to