You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Liya Fan (Jira)" <ji...@apache.org> on 2020/03/05 14:03:00 UTC

[jira] [Created] (ARROW-8009) [Java] Fix the hash code mehods for BitVector

Liya Fan created ARROW-8009:
-------------------------------

             Summary: [Java] Fix the hash code mehods 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


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)