xudong963 opened a new pull request, #21429:
URL: https://github.com/apache/datafusion/pull/21429
## Which issue does this PR close?
- Closes #21428.
## Rationale for this change
`datafusion_common::hash_utils` currently exposes hashing helpers only for
DataFusion's
`RandomState`. This makes the code harder to reuse from callers that need a
custom
`BuildHasher` for integration or test scenarios.
## What changes are included in this PR?
- Add `with_hashes_with_hasher` and `create_hashes_with_hasher` public APIs.
- Preserve the existing optimized `RandomState` path for the current
`with_hashes`
and `create_hashes` APIs.
- Extend the `hash_utils` tests to cover the new custom-hasher entry points.
- Gate the inequality assertion in the new custom-hasher test under
`force_hash_collisions` so the feature-specific test configuration keeps
passing.
## Are these changes tested?
Yes.
- `cargo test -p datafusion-common hash_utils`
- `cargo test -p datafusion-common --features force_hash_collisions
hash_utils`
## Are there any user-facing changes?
Yes. `datafusion-common` now exposes `with_hashes_with_hasher` and
`create_hashes_with_hasher` for callers that need a custom `BuildHasher`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]