Skip to content

Commit

Permalink
add wasm32 to hash, fix wasm32 build (apache#787)
Browse files Browse the repository at this point in the history
* add wasm32 to hash

* cargo fmt
  • Loading branch information
seddonm1 authored and ovr committed Mar 29, 2024
1 parent 701f027 commit 6f9cff7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion parquet/src/util/hash_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ fn hash_(data: &[u8], seed: u32) -> u32 {
}
}

#[cfg(any(target_arch = "aarch64", target_arch = "arm", target_arch = "riscv64"))]
#[cfg(any(
target_arch = "aarch64",
target_arch = "arm",
target_arch = "riscv64",
target_arch = "wasm32"
))]
unsafe {
murmur_hash2_64a(data, seed as u64) as u32
}
Expand Down

0 comments on commit 6f9cff7

Please sign in to comment.