We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79b6f7e commit 28c6397Copy full SHA for 28c6397
arrow-schema/src/datatype_parse.rs
@@ -371,6 +371,8 @@ impl<'a> Parser<'a> {
371
Box::new(value_type),
372
))
373
}
374
+
375
+ /// Parses the next Struct (called after `Struct` has been consumed)
376
fn parse_struct(&mut self) -> ArrowResult<DataType> {
377
self.expect_token(Token::LParen)?;
378
let mut fields = Vec::new();
@@ -410,6 +412,7 @@ impl<'a> Parser<'a> {
410
412
Ok(DataType::Struct(Fields::from(fields)))
411
413
414
415
+ /// return and consume if the next token is `Token::Nullable`
416
fn nullable(&mut self) -> bool {
417
self.tokenizer
418
.next_if(|next| matches!(next, Ok(Token::Nullable)))
0 commit comments