mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-11 06:22:04 +00:00
Support date
'key' when using semi structured data (#1023)
This commit is contained in:
parent
b89edaa98b
commit
7993384686
2 changed files with 12 additions and 1 deletions
|
@ -4726,7 +4726,7 @@ impl<'a> Parser<'a> {
|
|||
)?,
|
||||
},
|
||||
// Case when Snowflake Semi-structured data like key:value
|
||||
Keyword::NoKeyword | Keyword::LOCATION | Keyword::TYPE if dialect_of!(self is SnowflakeDialect | GenericDialect) => {
|
||||
Keyword::NoKeyword | Keyword::LOCATION | Keyword::TYPE | Keyword::DATE if dialect_of!(self is SnowflakeDialect | GenericDialect) => {
|
||||
Ok(Value::UnQuotedString(w.value))
|
||||
}
|
||||
_ => self.expected(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue