Support parametric arguments to FUNCTION for ClickHouse dialect (#1315)

Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
This commit is contained in:
hulk 2024-06-23 19:36:05 +08:00 committed by GitHub
parent 7a9793b72e
commit a685e11993
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 119 additions and 5 deletions

View file

@ -336,6 +336,7 @@ pub fn join(relation: TableFactor) -> Join {
pub fn call(function: &str, args: impl IntoIterator<Item = Expr>) -> Expr {
Expr::Function(Function {
name: ObjectName(vec![Ident::new(function)]),
parameters: FunctionArguments::None,
args: FunctionArguments::List(FunctionArgumentList {
duplicate_treatment: None,
args: args