andygrove commented on code in PR #554:
URL: https://github.com/apache/datafusion-comet/pull/554#discussion_r1634890732


##########
core/src/parquet/util/hash_util.rs:
##########
@@ -45,17 +47,19 @@ const MURMUR_R: i32 = 47;
 unsafe fn murmur_hash2_64a(data_bytes: &[u8], seed: u64) -> u64 {
     let len = data_bytes.len();
     let len_64 = (len / 8) * 8;
-    let data_bytes_64 =
-        std::slice::from_raw_parts(&data_bytes[0..len_64] as *const [u8] as 
*const u64, len / 8);

Review Comment:
   This violates a precondition for `from_raw_parts` because `data_bytes` is 
not guaranteed to be correctly aligned for `u64`.



-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to