You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/04/06 07:14:44 UTC

[GitHub] [arrow-rs] viirya commented on a diff in pull request #1517: Fix reading nested lists from parquet files

viirya commented on code in PR #1517:
URL: https://github.com/apache/arrow-rs/pull/1517#discussion_r843553390


##########
parquet/src/arrow/array_reader/builder.rs:
##########
@@ -321,70 +323,71 @@ impl<'a> TypeVisitor<Option<Box<dyn ArrayReader>>, &'a ArrayReaderBuilderContext
             _ => (),
         }
 
-        let item_reader = self
-            .dispatch(item_type.clone(), &new_context)
-            .unwrap()
-            .unwrap();

Review Comment:
   When a column is not included, `dispatch` will return None. `unwrap` here will get unexpected 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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org