@@ -1045,6 +1045,7 @@ fn parse_select_count_wildcard() {
10451045 assert_eq ! (
10461046 & Expr :: Function ( Function {
10471047 name: ObjectName ( vec![ Ident :: new( "COUNT" ) ] ) ,
1048+ parameters: FunctionArguments :: None ,
10481049 args: FunctionArguments :: List ( FunctionArgumentList {
10491050 duplicate_treatment: None ,
10501051 args: vec![ FunctionArg :: Unnamed ( FunctionArgExpr :: Wildcard ) ] ,
@@ -1066,6 +1067,7 @@ fn parse_select_count_distinct() {
10661067 assert_eq ! (
10671068 & Expr :: Function ( Function {
10681069 name: ObjectName ( vec![ Ident :: new( "COUNT" ) ] ) ,
1070+ parameters: FunctionArguments :: None ,
10691071 args: FunctionArguments :: List ( FunctionArgumentList {
10701072 duplicate_treatment: Some ( DuplicateTreatment :: Distinct ) ,
10711073 args: vec![ FunctionArg :: Unnamed ( FunctionArgExpr :: Expr ( Expr :: UnaryOp {
@@ -2151,6 +2153,7 @@ fn parse_select_having() {
21512153 Some ( Expr :: BinaryOp {
21522154 left: Box :: new( Expr :: Function ( Function {
21532155 name: ObjectName ( vec![ Ident :: new( "COUNT" ) ] ) ,
2156+ parameters: FunctionArguments :: None ,
21542157 args: FunctionArguments :: List ( FunctionArgumentList {
21552158 duplicate_treatment: None ,
21562159 args: vec![ FunctionArg :: Unnamed ( FunctionArgExpr :: Wildcard ) ] ,
@@ -2180,6 +2183,7 @@ fn parse_select_qualify() {
21802183 Some ( Expr :: BinaryOp {
21812184 left: Box :: new( Expr :: Function ( Function {
21822185 name: ObjectName ( vec![ Ident :: new( "ROW_NUMBER" ) ] ) ,
2186+ parameters: FunctionArguments :: None ,
21832187 args: FunctionArguments :: List ( FunctionArgumentList {
21842188 duplicate_treatment: None ,
21852189 args: vec![ ] ,
@@ -2523,6 +2527,7 @@ fn parse_listagg() {
25232527 assert_eq ! (
25242528 & Expr :: Function ( Function {
25252529 name: ObjectName ( vec![ Ident :: new( "LISTAGG" ) ] ) ,
2530+ parameters: FunctionArguments :: None ,
25262531 args: FunctionArguments :: List ( FunctionArgumentList {
25272532 duplicate_treatment: Some ( DuplicateTreatment :: Distinct ) ,
25282533 args: vec![
@@ -4227,6 +4232,7 @@ fn parse_named_argument_function() {
42274232 assert_eq ! (
42284233 & Expr :: Function ( Function {
42294234 name: ObjectName ( vec![ Ident :: new( "FUN" ) ] ) ,
4235+ parameters: FunctionArguments :: None ,
42304236 args: FunctionArguments :: List ( FunctionArgumentList {
42314237 duplicate_treatment: None ,
42324238 args: vec![
@@ -4265,6 +4271,7 @@ fn parse_named_argument_function_with_eq_operator() {
42654271 assert_eq ! (
42664272 & Expr :: Function ( Function {
42674273 name: ObjectName ( vec![ Ident :: new( "FUN" ) ] ) ,
4274+ parameters: FunctionArguments :: None ,
42684275 args: FunctionArguments :: List ( FunctionArgumentList {
42694276 duplicate_treatment: None ,
42704277 args: vec![
@@ -4337,6 +4344,7 @@ fn parse_window_functions() {
43374344 assert_eq ! (
43384345 & Expr :: Function ( Function {
43394346 name: ObjectName ( vec![ Ident :: new( "row_number" ) ] ) ,
4347+ parameters: FunctionArguments :: None ,
43404348 args: FunctionArguments :: List ( FunctionArgumentList {
43414349 duplicate_treatment: None ,
43424350 args: vec![ ] ,
@@ -4465,6 +4473,7 @@ fn test_parse_named_window() {
44654473 value: "MIN" . to_string( ) ,
44664474 quote_style: None ,
44674475 } ] ) ,
4476+ parameters: FunctionArguments :: None ,
44684477 args: FunctionArguments :: List ( FunctionArgumentList {
44694478 duplicate_treatment: None ,
44704479 args: vec![ FunctionArg :: Unnamed ( FunctionArgExpr :: Expr (
@@ -4494,6 +4503,7 @@ fn test_parse_named_window() {
44944503 value: "MAX" . to_string( ) ,
44954504 quote_style: None ,
44964505 } ] ) ,
4506+ parameters: FunctionArguments :: None ,
44974507 args: FunctionArguments :: List ( FunctionArgumentList {
44984508 duplicate_treatment: None ,
44994509 args: vec![ FunctionArg :: Unnamed ( FunctionArgExpr :: Expr (
@@ -8089,6 +8099,7 @@ fn parse_time_functions() {
80898099 let select = verified_only_select ( & sql) ;
80908100 let select_localtime_func_call_ast = Function {
80918101 name : ObjectName ( vec ! [ Ident :: new( func_name) ] ) ,
8102+ parameters : FunctionArguments :: None ,
80928103 args : FunctionArguments :: List ( FunctionArgumentList {
80938104 duplicate_treatment : None ,
80948105 args : vec ! [ ] ,
@@ -9017,6 +9028,7 @@ fn parse_call() {
90179028 assert_eq ! (
90189029 verified_stmt( "CALL my_procedure('a')" ) ,
90199030 Statement :: Call ( Function {
9031+ parameters: FunctionArguments :: None ,
90209032 args: FunctionArguments :: List ( FunctionArgumentList {
90219033 duplicate_treatment: None ,
90229034 args: vec![ FunctionArg :: Unnamed ( FunctionArgExpr :: Expr ( Expr :: Value (
@@ -9418,6 +9430,7 @@ fn test_selective_aggregation() {
94189430 vec![
94199431 SelectItem :: UnnamedExpr ( Expr :: Function ( Function {
94209432 name: ObjectName ( vec![ Ident :: new( "ARRAY_AGG" ) ] ) ,
9433+ parameters: FunctionArguments :: None ,
94219434 args: FunctionArguments :: List ( FunctionArgumentList {
94229435 duplicate_treatment: None ,
94239436 args: vec![ FunctionArg :: Unnamed ( FunctionArgExpr :: Expr (
@@ -9435,6 +9448,7 @@ fn test_selective_aggregation() {
94359448 SelectItem :: ExprWithAlias {
94369449 expr: Expr :: Function ( Function {
94379450 name: ObjectName ( vec![ Ident :: new( "ARRAY_AGG" ) ] ) ,
9451+ parameters: FunctionArguments :: None ,
94389452 args: FunctionArguments :: List ( FunctionArgumentList {
94399453 duplicate_treatment: None ,
94409454 args: vec![ FunctionArg :: Unnamed ( FunctionArgExpr :: Expr (
0 commit comments