[ 
https://issues.apache.org/jira/browse/ARROW-8009?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Liya Fan updated ARROW-8009:
----------------------------
    Summary: [Java] Fix the hash code methods for BitVector  (was: [Java] Fix 
the hash code mehods for BitVector)

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

Reply via email to