You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Reuben Kuhnert (JIRA)" <ji...@apache.org> on 2016/03/18 16:20:33 UTC
[jira] [Created] (HIVE-13311) MetaDataFormatUtils throws NPE when
HiveDecimal.create is null
Reuben Kuhnert created HIVE-13311:
-------------------------------------
Summary: MetaDataFormatUtils throws NPE when HiveDecimal.create is null
Key: HIVE-13311
URL: https://issues.apache.org/jira/browse/HIVE-13311
Project: Hive
Issue Type: Bug
Reporter: Reuben Kuhnert
Assignee: Reuben Kuhnert
The {{MetadataFormatUtils.convertToString}} functions have guards to validate for when valid is null, however the
{code}
private static String convertToString(Decimal val) {
if (val == null) {
return "";
}
return HiveDecimal.create(new BigInteger(val.getUnscaled()), val.getScale()).toString();
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)