[
https://issues.apache.org/jira/browse/HIVE-511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713751#action_12713751
]
Raghotham Murthy commented on HIVE-511:
---------------------------------------
r = r * 31 + ObjectInspectorUtils.hashCode(arguments[i].get(), argumentOIs[i]);
Wont this overflow?
Maybe change it to something like the following?
r = r ^ ObjectInspectorUtils.hashCode(arguments[i].get(), argumentOIs[i]);
> Change the hashcode for DoubleWritable
> --------------------------------------
>
> Key: HIVE-511
> URL: https://issues.apache.org/jira/browse/HIVE-511
> Project: Hadoop Hive
> Issue Type: Bug
> Affects Versions: 0.4.0
> Reporter: Zheng Shao
> Assignee: Zheng Shao
> Fix For: 0.4.0
>
> Attachments: HIVE-511.1.patch, HIVE-511.2.patch
>
>
> The current DoubleWritable hashCode takes only the last 32 bits. This is a
> big problem because for small integer values like 1.0, 2.0, 15.0, the
> hashCode are all 0.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.