[ 
https://issues.apache.org/jira/browse/KYLIN-2026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

nichunen updated KYLIN-2026:
----------------------------
    Attachment: KYLIN-2026.patch

> 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