[
https://issues.apache.org/jira/browse/HIVE-10580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14542604#comment-14542604
]
Alexander Pivovarov commented on HIVE-10580:
--------------------------------------------
GenericUDF is a base class to build UDFs. Some 3rd party UDFs might have bigint
constants.
getConstantLongValue API was added to hive-1.2.0
I do not think it's a good idea to remove this API in 1.3.0.
Some people might built UDFs which uses getConstantLongValue already
> 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)