[
https://issues.apache.org/jira/browse/HIVE-21835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16866628#comment-16866628
]
Laszlo Bodor commented on HIVE-21835:
-------------------------------------
pushed to master, thanks [~isuller] for the patch!
> Unnecessary null checks in org.apache.hadoop.hive.ql.optimizer.StatsOptimizer
> -----------------------------------------------------------------------------
>
> Key: HIVE-21835
> URL: https://issues.apache.org/jira/browse/HIVE-21835
> Project: Hive
> Issue Type: Improvement
> Reporter: Ivan Suller
> Assignee: Ivan Suller
> Priority: Minor
> Attachments: HIVE-21835.1.patch, HIVE-21835.2.patch,
> HIVE-21835.2.patch
>
>
> There are several null checks in
> org.apache.hadoop.hive.ql.optimizer.StatsOptimizer after Long.parseLong(...)
> call. This method returns with a primitive long value, which cannot be null -
> a null check after this call is redundant.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)