You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Shaofeng SHI (JIRA)" <ji...@apache.org> on 2016/09/28 05:54:20 UTC
[jira] [Resolved] (KYLIN-2026) NPE occurs when build a cube without
partition column.
[ https://issues.apache.org/jira/browse/KYLIN-2026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shaofeng SHI resolved KYLIN-2026.
---------------------------------
Resolution: Fixed
Released in v.1.5.4.1
> 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.1
>
>
> 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)