tustvold commented on code in PR #7120:
URL: https://github.com/apache/arrow-rs/pull/7120#discussion_r1968141139
##########
arrow-ipc/src/reader.rs:
##########
@@ -432,6 +458,17 @@ impl<'a> RecordBatchDecoder<'a> {
self
}
+ /// Specifies if validation should be skipped when reading data (defaults
to `false`)
+ ///
+ /// # Safety
+ ///
+ /// Relies on the caller only passing a flag with `true` value if they are
+ /// certain that the data is valid
+ pub fn with_skip_validation(mut self, skip_validation: UnsafeFlag) -> Self
{
Review Comment:
Alternatively we could simply make this take a `bool` and be unsafe, as this
would make the chaining explicit
--
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]