[ 
https://issues.apache.org/jira/browse/KYLIN-2026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15515641#comment-15515641
 ] 

renfangming commented on KYLIN-2026:
------------------------------------

After add your patch,occur new bug in FactDistinctColumnsReducer 98 record,
please check it 

Bug Detail as below:
Error: java.lang.IndexOutOfBoundsException: Index: 9, Size: 9 at 
java.util.ArrayList.rangeCheck(ArrayList.java:635) at 
java.util.ArrayList.get(ArrayList.java:411) at 
org.apache.kylin.engine.mr.steps.FactDistinctColumnsReducer.setup(FactDistinctColumnsReducer.java:98)
 at 
org.apache.kylin.engine.mr.steps.FactDistinctColumnsReducer.setup(FactDistinctColumnsReducer.java:98)

> NPE occurs when build a cube without partition column.
> ------------------------------------------------------
>
>                 Key: KYLIN-2026
>                 URL: https://issues.apache.org/jira/browse/KYLIN-2026
>             Project: Kylin
>          Issue Type: Bug
>          Components: General
>    Affects Versions: v1.5.4
>            Reporter: nichunen
>            Assignee: nichunen
>              Labels: patch
>             Fix For: v1.5.4
>
>         Attachments: KYLIN-2026.patch
>
>
> I created a model with no partition column specified, step "Extract Fact 
> Table Distinct Columns" failed with MR log 
> "org.apache.hadoop.mapred.YarnChild: Exception running child : 
> java.lang.NullPointerException at 
> org.apache.kylin.cube.model.CubeJoinedFlatTableDesc.getColumnIndex(CubeJoinedFlatTableDesc.java:145)".
> I doubt the root cause is in 
> org.apache.kylin.cube.CubeManager#getAllDictColumnsOnFact, a null value is 
> added to the return list due to 
> cubeDesc.getModel().getPartitionDesc().getPartitionDateColumnRef() gets null.
> Attached is the patch to fix, only add a null check.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to