ZhouQianhao created KYLIN-766:
---------------------------------
Summary: round BigDecimal according to the DataType scale
Key: KYLIN-766
URL: https://issues.apache.org/jira/browse/KYLIN-766
Project: Kylin
Issue Type: Bug
Components: Metadata
Affects Versions: v0.7.1, v0.7.2, v0.7.3, v0.8.1
Reporter: ZhouQianhao
Assignee: ZhouQianhao
Fix For: v0.8.1
Error: java.lang.IllegalArgumentException: '668553.442149072317364924' exceeds
the expected length for type decimal(19,4) at
org.apache.kylin.metadata.serializer.BigDecimalSerializer.serialize(BigDecimalSerializer.java:48)
at
org.apache.kylin.metadata.serializer.BigDecimalSerializer.serialize(BigDecimalSerializer.java:33)
at org.apache.kylin.metadata.measure.MeasureCodec.encode(MeasureCodec.java:81)
at
org.apache.kylin.job.hadoop.cubev2.InMemCuboidReducer.reduce(InMemCuboidReducer.java:93)
at
org.apache.kylin.job.hadoop.cubev2.InMemCuboidReducer.reduce(InMemCuboidReducer.java:29)
at org.apache.hadoop.mapreduce.Reducer.run(Reducer.java:171) at
org.apache.hadoop.mapred.ReduceTask.runNewReducer(ReduceTask.java:627) at
org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:389) 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:1650)
at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:162)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)