viirya commented on code in PR #8009:
URL: https://github.com/apache/arrow-rs/pull/8009#discussion_r2237870120
##########
arrow-array/src/ffi.rs:
##########
@@ -1660,6 +1676,25 @@ mod tests_from_ffi {
}
}
+ #[test]
+ #[cfg(not(feature = "force_validate"))]
Review Comment:
If `force_validate` is enabled, when we call
`GenericByteViewArray::new_unchecked` to create a Utf8View array, even it is
"unchecked" one, but `force_validate` will force to validate the views buffer.
But in this test the `ScalarBuffer` is a invalid one (it uses an unaligned
dangling pointer), so there will be a runtime error.
--
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]