[
https://issues.apache.org/jira/browse/ARROW-15175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
James Henderson updated ARROW-15175:
------------------------------------
Summary: [Java] MurmurHasher doesn't take the final bytes into account if
size % 4 != 0 (was: MurmurHasher doesn't take the final bytes into account if
size % 4 != 0)
> [Java] MurmurHasher doesn't take the final bytes into account if size % 4 != 0
> ------------------------------------------------------------------------------
>
> Key: ARROW-15175
> URL: https://issues.apache.org/jira/browse/ARROW-15175
> Project: Apache Arrow
> Issue Type: Bug
> Components: Java
> Affects Versions: 6.0.1
> Reporter: James Henderson
> Priority: Minor
>
> Repro (for example): all buffers of size 1 hash to the same value
> (-1684229222)
> To my untrained eye, it looks like
> [https://github.com/apache/arrow/blob/c9588c54a1264ce02abc70cd02486966a1e97acf/java/memory/memory-core/src/main/java/org/apache/arrow/memory/util/hash/MurmurHasher.java#L99]
> should range from `length - 1` rather than `index - 1`?
--
This message was sent by Atlassian Jira
(v8.20.1#820001)