mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-09 21:42:05 +00:00
Add support of parsing struct field's options in BigQuery (#1890)
Some checks failed
license / Release Audit Tool (RAT) (push) Has been cancelled
Rust / codestyle (push) Has been cancelled
Rust / lint (push) Has been cancelled
Rust / benchmark-lint (push) Has been cancelled
Rust / compile (push) Has been cancelled
Rust / docs (push) Has been cancelled
Rust / compile-no-std (push) Has been cancelled
Rust / test (beta) (push) Has been cancelled
Rust / test (nightly) (push) Has been cancelled
Rust / test (stable) (push) Has been cancelled
Some checks failed
license / Release Audit Tool (RAT) (push) Has been cancelled
Rust / codestyle (push) Has been cancelled
Rust / lint (push) Has been cancelled
Rust / benchmark-lint (push) Has been cancelled
Rust / compile (push) Has been cancelled
Rust / docs (push) Has been cancelled
Rust / compile-no-std (push) Has been cancelled
Rust / test (beta) (push) Has been cancelled
Rust / test (nightly) (push) Has been cancelled
Rust / test (stable) (push) Has been cancelled
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
This commit is contained in:
parent
be30697efb
commit
b1b379e570
5 changed files with 138 additions and 52 deletions
|
@ -3076,6 +3076,7 @@ impl<'a> Parser<'a> {
|
|||
Ok(StructField {
|
||||
field_name: Some(field_name),
|
||||
field_type,
|
||||
options: None,
|
||||
})
|
||||
});
|
||||
self.expect_token(&Token::RParen)?;
|
||||
|
@ -3109,10 +3110,12 @@ impl<'a> Parser<'a> {
|
|||
|
||||
let (field_type, trailing_bracket) = self.parse_data_type_helper()?;
|
||||
|
||||
let options = self.maybe_parse_options(Keyword::OPTIONS)?;
|
||||
Ok((
|
||||
StructField {
|
||||
field_name,
|
||||
field_type,
|
||||
options,
|
||||
},
|
||||
trailing_bracket,
|
||||
))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue