mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-09-07 14:40:31 +00:00
feat: support BIGNUMERIC
of bigquery (#811)
* add tests * bignumeric data type * bignumeric keyword * fix doc * add exact_number_info * fix doc * check result string
This commit is contained in:
parent
b45306819c
commit
fbbf1a4e84
4 changed files with 87 additions and 0 deletions
|
@ -4432,6 +4432,12 @@ impl<'a> Parser<'a> {
|
|||
Keyword::DEC => Ok(DataType::Dec(
|
||||
self.parse_exact_number_optional_precision_scale()?,
|
||||
)),
|
||||
Keyword::BIGNUMERIC => Ok(DataType::BigNumeric(
|
||||
self.parse_exact_number_optional_precision_scale()?,
|
||||
)),
|
||||
Keyword::BIGDECIMAL => Ok(DataType::BigDecimal(
|
||||
self.parse_exact_number_optional_precision_scale()?,
|
||||
)),
|
||||
Keyword::ENUM => Ok(DataType::Enum(self.parse_string_values()?)),
|
||||
Keyword::SET => Ok(DataType::Set(self.parse_string_values()?)),
|
||||
Keyword::ARRAY => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue