[ 
https://issues.apache.org/jira/browse/HIVE-10580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14542700#comment-14542700
 ] 

Alexander Pivovarov commented on HIVE-10580:
--------------------------------------------

Protected means that the method might be used by actual UDFs.
Hive itself contains only common UDFs.
But each serious hive users/companies have their own UDFs.
it's quite possible that custom UDFs have bigint constant as a parameter.

protected API should be handled the same as public API. Once added it should 
not be removed.
because they both are exposed to external users
if we look at UML class diagram then we can see that
- protected API can be used for "inheritance" objects relationship
- public API is used for all objects relationship

> 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)

Reply via email to