问题描述

问题描述/异常栈

Caused by: java.lang.NullPointerException
    at org.apache.hadoop.hive.ql.io.parquet.write.DataWritableWriter.decimalToBinary(DataWritableWriter.java:316)
    at org.apache.hadoop.hive.ql.io.parquet.write.DataWritableWriter.writePrimitive(DataWritableWriter.java:302)
    at org.apache.hadoop.hive.ql.io.parquet.write.DataWritableWriter.writeValue(DataWritableWriter.java:106)
    at org.apache.hadoop.hive.ql.io.parquet.write.DataWritableWriter.writeGroupFields(DataWritableWriter.java:89)
    at org.apache.hadoop.hive.ql.io.parquet.write.DataWritableWriter.write(DataWritableWriter.java:60)

解决方案

修改decimal的精度解决。

问题原因

hivebug导致,表中存在decimal字段的ps相同

作者:常惠渊