mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-15 00:09:02 +00:00
Fix :start and :end json accesses on snowflake (#1110)
This commit is contained in:
parent
f5e27366f3
commit
4be8117af0
2 changed files with 26 additions and 1 deletions
|
@ -5471,7 +5471,14 @@ impl<'a> Parser<'a> {
|
|||
)?,
|
||||
},
|
||||
// Case when Snowflake Semi-structured data like key:value
|
||||
Keyword::NoKeyword | Keyword::LOCATION | Keyword::TYPE | Keyword::DATE if dialect_of!(self is SnowflakeDialect | GenericDialect) => {
|
||||
Keyword::NoKeyword
|
||||
| Keyword::LOCATION
|
||||
| Keyword::TYPE
|
||||
| Keyword::DATE
|
||||
| Keyword::START
|
||||
| Keyword::END
|
||||
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