[
https://issues.apache.org/jira/browse/HIVE-1179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Arvind Prabhakar updated HIVE-1179:
-----------------------------------
Attachment: HIVE-1179-1.patch
*Summary:*
The previously submitted patch had changes that removed seemingly redundant
casts needed by Hadoop 0.17.x. This change reverts the casts and also fixes
what caused the removal of the casts.
*Details:*
Due to the default JDT preferences set for Eclipse, the _Clean Up_ code
formatter automatically removes any redundant casts in the file being saved.
This caused the casts to be removed from {{FunctionRegistry.java}} for return
value of calls to {{ReflectionUtils.newInstance()}} method.
The cast of this return value was deemed redundant because the newer version of
{{ReflectionUtils.newInstance()}} returns a typed object of the expected type
in call context. However, the previous version of
{{ReflectionUtils.newInstance()}} returned only {{java.lang.Object}} instead.
This caused the change to not compile against previous version of
{{ReflectionUtils}}.
*Changes from last patch:*
1. The {{FunctionRegistry.java}} file has been edited to restore the previously
removed casts.
2. The default preferences for Eclipse JDT UI that controls the _Clean Up_ code
formatter that cased this problem has been updated to not remove redundant
casts from the file being saved.
*Testing done:*
- Compiled and tested the change against the default version of Hadoop.
- Compiled and tested against 0.17.2.1 version as well.
> Add UDF array_contains
> ----------------------
>
> Key: HIVE-1179
> URL: https://issues.apache.org/jira/browse/HIVE-1179
> Project: Hadoop Hive
> Issue Type: New Feature
> Reporter: Zheng Shao
> Assignee: Arvind Prabhakar
> Attachments: HIVE-1179-1.patch, HIVE-1179.patch
>
>
> Returns true or false, depending on whether an element is in an array.
> {{array_contains(T element, array<T> theArray)}}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.