viirya commented on a change in pull request #1477:
URL: https://github.com/apache/arrow-rs/pull/1477#discussion_r832860836



##########
File path: parquet/src/arrow/levels.rs
##########
@@ -757,7 +757,10 @@ impl LevelInfo {
 
     /// Given a level's information, calculate the offsets required to index 
an array correctly.
     pub(crate) fn filter_array_indices(&self) -> Vec<usize> {
-        if !matches!(self.level_type, LevelType::Primitive(_)) {
+        if !matches!(
+            self.level_type,
+            LevelType::Primitive(_) | LevelType::List(_)
+        ) {
             panic!(
                 "Cannot filter indices on a non-primitive array, found {:?}",

Review comment:
       ```suggestion
                   "Cannot filter indices on a non-primitive array and non-list 
array, found {:?}",
   ```




-- 
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]


Reply via email to