[
https://issues.apache.org/jira/browse/ARROW-8009?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Micah Kornfield resolved ARROW-8009.
------------------------------------
Fix Version/s: 1.0.0
Resolution: Fixed
Issue resolved by pull request 6543
[https://github.com/apache/arrow/pull/6543]
> [Java] Fix the hash code methods for BitVector
> ----------------------------------------------
>
> Key: ARROW-8009
> URL: https://issues.apache.org/jira/browse/ARROW-8009
> Project: Apache Arrow
> Issue Type: Bug
> Components: Java
> Reporter: Liya Fan
> Assignee: Liya Fan
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.0.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> The current hash code methods of BitVector are based on implementations in
> BaseFixedWidthVector, which rely on the type width of the vector.
> For BitVector, the type width is 0, so the underlying data is not actually
> used when computing the hash code. That means, the hash code will always be
> 0, no matter if the underlying data is null or not, and no matter if the
> underlying bit is 0 or 1.
> We fix this by overriding the methods in BitVector.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)