alamb commented on code in PR #9979:
URL: https://github.com/apache/arrow-rs/pull/9979#discussion_r3283475849
##########
parquet/src/record/api.rs:
##########
@@ -244,15 +247,20 @@ macro_rules! row_complex_accessor {
impl RowFormatter for Row {
/// Get Display reference for a given field.
fn fmt(&self, i: usize) -> &dyn fmt::Display {
- &self.fields[i].1
+ if let Some((_, v)) = self.fields.get(i) {
+ v
+ } else {
+ &"<IndexOutOfBound>"
Review Comment:
seems fine to me
--
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]