FAQ-写入hive的parquet表报错
更新时间: 2024-03-11 02:47:44
阅读 970
问题描述
问题描述/异常栈
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的精度解决。
问题原因
hive的bug导致,表中存在decimal字段的p和s相同
作者:常惠渊
文档反馈
以上内容对您是否有帮助?