alamb commented on code in PR #8890:
URL: https://github.com/apache/arrow-rs/pull/8890#discussion_r2547530301


##########
arrow-schema/src/datatype_parse.rs:
##########
@@ -547,11 +547,15 @@ impl<'a> Parser<'a> {
         ))
     }
 
-    /// return and consume if the next token is `Token::Nullable`
+    /// consume the next token and return `false` if the field is `nonnull`.
     fn parse_opt_nullable(&mut self) -> bool {
-        self.tokenizer
-            .next_if(|next| matches!(next, Ok(Token::Nullable)))
-            .is_some()
+        let tok = self
+            .tokenizer
+            .next_if(|next| matches!(next, Ok(Token::NonNull | 
Token::Nullable)));
+        match tok {
+            Some(Ok(Token::NonNull)) => false,
+            _ => true,
+        }

Review Comment:
   I don't think we have released anything with `nullable` in it 



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