apache / apache/arrow-rs

Hash for Array

Open
#4,802 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
3.6k
Forks
1.3k
Avg merge
2d 14h
Merged PRs (30d)
167

Description

**Is your feature request related to a problem or challenge? Please describe what you are trying to do.**

While implementing https://github.com/apache/arrow-datafusion/issues/7353, I found we might need hash() for `ArrayRef`.
If there is no existing function, having hash function in arrow-rs for ArrayRef would be a good idea.

Reference code where we need hash() for ScalarValue::List(ArrayRef)
https://github.com/apache/arrow-datafusion/blob/495c25f7d8ac2e9c7c82306f2c0967a766342c8b/datafusion/common/src/scalar.rs#L604C14-L607

**Describe the solution you'd like**

**Describe alternatives you've considered**

**Additional context**

Contributor guide

Open the contributing guide

Research direction

Start by reading the referenced DataFusion issue 7353 and datafusion/common/src/scalar.rs around lines 604-607 to understand how hashing is needed for ScalarValue::List(ArrayRef). Determine the intended hashing behavior and scope for ArrayRef in arrow-rs; done means the referenced use case can hash ArrayRef consistently, with appropriate validation.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.