mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-13 15:32:03 +00:00
Support for Snowflake ASOF joins (#1288)
This commit is contained in:
parent
375742d1fa
commit
80c03f5c6a
5 changed files with 123 additions and 3 deletions
|
@ -312,6 +312,20 @@ pub fn table(name: impl Into<String>) -> TableFactor {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn table_with_alias(name: impl Into<String>, alias: impl Into<String>) -> TableFactor {
|
||||
TableFactor::Table {
|
||||
name: ObjectName(vec![Ident::new(name)]),
|
||||
alias: Some(TableAlias {
|
||||
name: Ident::new(alias),
|
||||
columns: vec![],
|
||||
}),
|
||||
args: None,
|
||||
with_hints: vec![],
|
||||
version: None,
|
||||
partitions: vec![],
|
||||
}
|
||||
}
|
||||
|
||||
pub fn join(relation: TableFactor) -> Join {
|
||||
Join {
|
||||
relation,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue