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 2021/05/02 16:02:06 UTC

[GitHub] [arrow-rs] nevi-me commented on a change in pull request #246: fix parquet max_definition for non-null structs

nevi-me commented on a change in pull request #246:
URL: https://github.com/apache/arrow-rs/pull/246#discussion_r624717017



##########
File path: parquet/src/arrow/levels.rs
##########
@@ -311,11 +333,20 @@ impl LevelInfo {
                 } else if self.is_list {
                     // second exception, always increment after a list
                     self.max_definition + 1
+                } else if is_parent_struct && !self.is_nullable {
+                    // if the parent is a non-null struct, don't increment

Review comment:
       Yes, self is the parent, so if the parent is a null struct ...
   
   Interestingly, I don't need the 'is_parent_steuct' variable, because '!self.is_list' means that self is a struct at this point in the code. I'll tweak the logic later tonight




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

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