Shaofeng SHI created KYLIN-2032: ----------------------------------- Summary: Cube build failed when partition column isn't in dimension list Key: KYLIN-2032 URL: https://issues.apache.org/jira/browse/KYLIN-2032 Project: Kylin Issue Type: Bug Affects Versions: v1.5.4 Reporter: Shaofeng SHI Fix For: v1.6.0
Create a cube which use "LO_DATE" as the partition date column, while it wasn't in the dimension list; when build the cube, it got failed in the "Fact distinct" step, mappers reported such exception: {code} Error: java.lang.IllegalArgumentException: Column SSB.V_LINEORDER.LO_DATE wasn't found on flat table. at org.apache.kylin.cube.model.CubeJoinedFlatTableDesc.getColumnIndex(CubeJoinedFlatTableDesc.java:145) at org.apache.kylin.cube.model.CubeJoinedFlatTableEnrich.getColumnIndex(CubeJoinedFlatTableEnrich.java:122) at org.apache.kylin.engine.mr.steps.FactDistinctColumnsMapperBase.setup(FactDistinctColumnsMapperBase.java:80) at org.apache.kylin.engine.mr.steps.FactDistinctHiveColumnsMapper.setup(FactDistinctHiveColumnsMapper.java:59) at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:142) at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:784) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341) at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:167) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:415) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1671) at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:162) {code} If add it to dimension, then the build got success; In CubeManager.getAllDictColumnsOnFact(), it said "add partition column in all case" -- This message was sent by Atlassian JIRA (v6.3.4#6332)