veluca93 commented on code in PR #6021:
URL: https://github.com/apache/arrow-rs/pull/6021#discussion_r1669395334
##########
parquet/src/util/bit_util.rs:
##########
@@ -461,6 +465,9 @@ impl BitReader {
match size_of::<T>() {
1 => {
let ptr = batch.as_mut_ptr() as *mut u8;
+ // SAFETY: batch is properly aligned and sized. Caller
guarantees that T
+ // can be safely seen as a slice of bytes through FromBytes
bound
+ // (FIXME: not actually true right now)
Review Comment:
Yep, this is indeed OK - see my previous comment for the issue here, which
is not with constructing the slice but with writing to it.
--
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]