[ https://issues.apache.org/jira/browse/HIVE-10580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14542779#comment-14542779 ]
Swarnim Kulkarni commented on HIVE-10580: ----------------------------------------- {quote} protected API should be handled the same as public API. Once added it should not be removed. {quote} +1 for not directly removing the method to maintain passivity but that statement is not completely true. The ideal approach is to deprecate the method and mention in the javadoc an alternative to use. So I think we should go ahead and just deprecate this method since it is not being used. > Fix impossible cast in GenericUDF.getConstantLongValue > ------------------------------------------------------ > > Key: HIVE-10580 > URL: https://issues.apache.org/jira/browse/HIVE-10580 > Project: Hive > Issue Type: Bug > Components: UDF > Reporter: Alexander Pivovarov > Assignee: Alexander Pivovarov > Attachments: HIVE-10580.1.patch > > > line 548-549 > {code} > if (constValue instanceof IntWritable) { > v = ((LongWritable) constValue).get(); > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)