Zoltan Haindrich created HIVE-23371:
---------------------------------------
Summary: StatsUtils.getConstValue may log misleading exception
Key: HIVE-23371
URL: https://issues.apache.org/jira/browse/HIVE-23371
Project: Hive
Issue Type: Bug
Reporter: Zoltan Haindrich
Assignee: Zoltan Haindrich
it logs exceptions like:
{code}
2020-05-05T01:51:59,609 DEBUG [cba65ded-3bb5-4295-9b3f-cdf844a8faec main]
stats.StatsUtils: Interpreting constant (2008-04-08) resulted in exception
java.lang.NumberFormatException: For input string: "2008-04-08"
at
sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
~[?:1.8.0_252]
at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
~[?:1.8.0_252]
at java.lang.Double.parseDouble(Double.java:538) ~[?:1.8.0_252]
at
org.apache.hadoop.hive.ql.stats.StatsUtils.getConstValue(StatsUtils.java:1653)
[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]
at
org.apache.hadoop.hive.ql.stats.StatsUtils.buildColStatForConstant(StatsUtils.java:1632)
[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]
at
org.apache.hadoop.hive.ql.stats.StatsUtils.getColStatisticsFromExpression(StatsUtils.java:1538)
[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]
{code}
however...these exceptions are not that important; might just draw attention
away from important ones
--
This message was sent by Atlassian Jira
(v8.3.4#803005)