Skip to content

Commit

Permalink
implement hash based CSE identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-toth committed May 14, 2024
1 parent 38beb1a commit 4b0608c
Show file tree
Hide file tree
Showing 10 changed files with 679 additions and 270 deletions.
76 changes: 38 additions & 38 deletions datafusion-cli/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion datafusion/common/src/hash_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use crate::error::{Result, _internal_err};

// Combines two hashes into one hash
#[inline]
fn combine_hashes(l: u64, r: u64) -> u64 {
pub fn combine_hashes(l: u64, r: u64) -> u64 {
let hash = (17 * 37u64).wrapping_add(l);
hash.wrapping_mul(37).wrapping_add(r)
}
Expand Down
Loading

0 comments on commit 4b0608c

Please sign in to comment.