mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-14 07:52:02 +00:00
Support Snowflake MATCH_RECOGNIZE
syntax (#1222)
This commit is contained in:
parent
bf89b7d808
commit
39980e8976
9 changed files with 847 additions and 9 deletions
|
@ -307,3 +307,20 @@ pub fn join(relation: TableFactor) -> Join {
|
|||
join_operator: JoinOperator::Inner(JoinConstraint::Natural),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn call(function: &str, args: impl IntoIterator<Item = Expr>) -> Expr {
|
||||
Expr::Function(Function {
|
||||
name: ObjectName(vec![Ident::new(function)]),
|
||||
args: args
|
||||
.into_iter()
|
||||
.map(FunctionArgExpr::Expr)
|
||||
.map(FunctionArg::Unnamed)
|
||||
.collect(),
|
||||
filter: None,
|
||||
null_treatment: None,
|
||||
over: None,
|
||||
distinct: false,
|
||||
special: false,
|
||||
order_by: vec![],
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue