Support for Snowflake ASOF joins (#1288)

This commit is contained in:
Joey Hain 2024-05-31 02:45:07 -07:00 committed by GitHub
parent 375742d1fa
commit 80c03f5c6a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 123 additions and 3 deletions

View file

@ -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,