Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARROW-8009: [Java] Fix the hash code methods for BitVector #6543

Closed
wants to merge 1 commit into from

Conversation

liyafan82
Copy link
Contributor

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.

@github-actions
Copy link

github-actions bot commented Mar 5, 2020

@emkornfield
Copy link
Contributor

+1 thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants