[ https://issues.apache.org/jira/browse/HIVE-23057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17065913#comment-17065913 ]
David Mollitor commented on HIVE-23057: --------------------------------------- [~kgyrtkirk] Are you able to review this? Thanks! > 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 > Attachments: HIVE-23057.1.patch > > > {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)