You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "David Mollitor (Jira)" <ji...@apache.org> on 2020/03/20 13:31:00 UTC
[jira] [Assigned] (HIVE-23057) ColumnStatsMergerFactory NPE
Possible
[ https://issues.apache.org/jira/browse/HIVE-23057?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Mollitor reassigned HIVE-23057:
-------------------------------------
> ColumnStatsMergerFactory NPE Possible
> -------------------------------------
>
> Key: HIVE-23057
> URL: https://issues.apache.org/jira/browse/HIVE-23057
> Project: Hive
> Issue Type: Improvement
> Reporter: David Mollitor
> Assignee: David Mollitor
> Priority: Major
>
> {code:java|title=ColumnStatsMergerFactory.java}
> // make sure that they have the same type
> typeNew = typeNew == typeOld ? typeNew : null;
> switch (typeNew) {
> case BOOLEAN_STATS:
> {code}
> This will throw a NPE if 'typeNew' does not equal 'typeOld'. Better to throw an Exception with a helpful error message here.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)