tustvold commented on code in PR #4584:
URL: https://github.com/apache/arrow-rs/pull/4584#discussion_r1740516177


##########
arrow-array/src/array/byte_array.rs:
##########
@@ -159,7 +159,7 @@ impl<T: ByteArrayType> GenericByteArray<T> {
     /// # Safety
     ///
     /// Safe if [`Self::try_new`] would not error
-    pub fn new_unchecked(
+    pub unsafe fn new_unchecked(

Review Comment:
   Yes, very much so. Many kernels and methods make assumptions about data 
validity that would lead to UB if not upheld.



-- 
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]

Reply via email to