mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-22 06:54:07 +00:00
supporting snowflake extract syntax (#1374)
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
This commit is contained in:
parent
ca5262c13f
commit
f5b818e74b
5 changed files with 78 additions and 3 deletions
|
@ -2136,6 +2136,7 @@ fn parse_extract_weekday() {
|
|||
assert_eq!(
|
||||
&Expr::Extract {
|
||||
field: DateTimeField::Week(Some(Ident::new("MONDAY"))),
|
||||
syntax: ExtractSyntax::From,
|
||||
expr: Box::new(Expr::Identifier(Ident::new("d"))),
|
||||
},
|
||||
expr_from_projection(only(&select.projection)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue