Rich-T-kid commented on code in PR #10206:
URL: https://github.com/apache/arrow-rs/pull/10206#discussion_r3467696738
##########
arrow-flight/src/decode.rs:
##########
@@ -250,9 +254,17 @@ impl FlightDataDecoder {
state: None,
response: response.boxed(),
done: false,
+ skip_validation: false,
}
}
+ /// Only set for trusted senders, invalid data may cause undefined
behavior.
+ /// Can improve performance by skipping validation
+ pub fn with_skip_validation(mut self, skip_validation: bool) -> Self {
+ self.skip_validation = skip_validation;
+ self
+ }
Review Comment:
Makes sense to me! pushed up a revision
--
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]