[ https://issues.apache.org/jira/browse/KYLIN-2026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shaofeng SHI updated KYLIN-2026: -------------------------------- Fix Version/s: (was: v1.5.4) v1.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)