@@ -875,6 +875,7 @@ fn parse_select_count_wildcard() {
875875 & Expr :: Function ( Function {
876876 name: ObjectName ( vec![ Ident :: new( "COUNT" ) ] ) ,
877877 args: vec![ FunctionArg :: Unnamed ( FunctionArgExpr :: Wildcard ) ] ,
878+ filter: None ,
878879 over: None ,
879880 distinct: false ,
880881 special: false ,
@@ -895,6 +896,7 @@ fn parse_select_count_distinct() {
895896 op: UnaryOperator :: Plus ,
896897 expr: Box :: new( Expr :: Identifier ( Ident :: new( "x" ) ) ) ,
897898 } ) ) ] ,
899+ filter: None ,
898900 over: None ,
899901 distinct: true ,
900902 special: false ,
@@ -1862,6 +1864,7 @@ fn parse_select_having() {
18621864 left: Box :: new( Expr :: Function ( Function {
18631865 name: ObjectName ( vec![ Ident :: new( "COUNT" ) ] ) ,
18641866 args: vec![ FunctionArg :: Unnamed ( FunctionArgExpr :: Wildcard ) ] ,
1867+ filter: None ,
18651868 over: None ,
18661869 distinct: false ,
18671870 special: false ,
@@ -1887,6 +1890,7 @@ fn parse_select_qualify() {
18871890 left: Box :: new( Expr :: Function ( Function {
18881891 name: ObjectName ( vec![ Ident :: new( "ROW_NUMBER" ) ] ) ,
18891892 args: vec![ ] ,
1893+ filter: None ,
18901894 over: Some ( WindowType :: WindowSpec ( WindowSpec {
18911895 partition_by: vec![ Expr :: Identifier ( Ident :: new( "p" ) ) ] ,
18921896 order_by: vec![ OrderByExpr {
@@ -3342,6 +3346,7 @@ fn parse_scalar_function_in_projection() {
33423346 args: vec![ FunctionArg :: Unnamed ( FunctionArgExpr :: Expr (
33433347 Expr :: Identifier ( Ident :: new( "id" ) )
33443348 ) ) ] ,
3349+ filter: None ,
33453350 over: None ,
33463351 distinct: false ,
33473352 special: false ,
@@ -3461,6 +3466,7 @@ fn parse_named_argument_function() {
34613466 ) ) ) ,
34623467 } ,
34633468 ] ,
3469+ filter: None ,
34643470 over: None ,
34653471 distinct: false ,
34663472 special: false ,
@@ -3492,6 +3498,7 @@ fn parse_window_functions() {
34923498 & Expr :: Function ( Function {
34933499 name: ObjectName ( vec![ Ident :: new( "row_number" ) ] ) ,
34943500 args: vec![ ] ,
3501+ filter: None ,
34953502 over: Some ( WindowType :: WindowSpec ( WindowSpec {
34963503 partition_by: vec![ ] ,
34973504 order_by: vec![ OrderByExpr {
@@ -3535,6 +3542,7 @@ fn test_parse_named_window() {
35353542 quote_style: None ,
35363543 } ) ,
35373544 ) ) ] ,
3545+ filter: None ,
35383546 over: Some ( WindowType :: NamedWindow ( Ident {
35393547 value: "window1" . to_string( ) ,
35403548 quote_style: None ,
@@ -3560,6 +3568,7 @@ fn test_parse_named_window() {
35603568 quote_style: None ,
35613569 } ) ,
35623570 ) ) ] ,
3571+ filter: None ,
35633572 over: Some ( WindowType :: NamedWindow ( Ident {
35643573 value: "window2" . to_string( ) ,
35653574 quote_style: None ,
@@ -4029,6 +4038,7 @@ fn parse_at_timezone() {
40294038 quote_style: None ,
40304039 } ] ) ,
40314040 args: vec![ FunctionArg :: Unnamed ( FunctionArgExpr :: Expr ( zero. clone( ) ) ) ] ,
4041+ filter: None ,
40324042 over: None ,
40334043 distinct: false ,
40344044 special: false ,
@@ -4056,6 +4066,7 @@ fn parse_at_timezone() {
40564066 quote_style: None ,
40574067 } , ] , ) ,
40584068 args: vec![ FunctionArg :: Unnamed ( FunctionArgExpr :: Expr ( zero) ) ] ,
4069+ filter: None ,
40594070 over: None ,
40604071 distinct: false ,
40614072 special: false ,
@@ -4067,6 +4078,7 @@ fn parse_at_timezone() {
40674078 Value :: SingleQuotedString ( "%Y-%m-%dT%H" . to_string( ) ) ,
40684079 ) , ) , ) ,
40694080 ] ,
4081+ filter: None ,
40704082 over: None ,
40714083 distinct: false ,
40724084 special: false ,
@@ -4225,6 +4237,7 @@ fn parse_table_function() {
42254237 args : vec ! [ FunctionArg :: Unnamed ( FunctionArgExpr :: Expr ( Expr :: Value (
42264238 Value :: SingleQuotedString ( "1" . to_owned( ) ) ,
42274239 ) ) ) ] ,
4240+ filter : None ,
42284241 over : None ,
42294242 distinct : false ,
42304243 special : false ,
@@ -4376,6 +4389,7 @@ fn parse_unnest_in_from_clause() {
43764389 FunctionArg :: Unnamed ( FunctionArgExpr :: Expr ( Expr :: Value ( number( "2" ) ) ) ) ,
43774390 FunctionArg :: Unnamed ( FunctionArgExpr :: Expr ( Expr :: Value ( number( "3" ) ) ) ) ,
43784391 ] ,
4392+ filter: None ,
43794393 over: None ,
43804394 distinct: false ,
43814395 special: false ,
@@ -4405,6 +4419,7 @@ fn parse_unnest_in_from_clause() {
44054419 FunctionArg :: Unnamed ( FunctionArgExpr :: Expr ( Expr :: Value ( number( "2" ) ) ) ) ,
44064420 FunctionArg :: Unnamed ( FunctionArgExpr :: Expr ( Expr :: Value ( number( "3" ) ) ) ) ,
44074421 ] ,
4422+ filter: None ,
44084423 over: None ,
44094424 distinct: false ,
44104425 special: false ,
@@ -4416,6 +4431,7 @@ fn parse_unnest_in_from_clause() {
44164431 FunctionArg :: Unnamed ( FunctionArgExpr :: Expr ( Expr :: Value ( number( "5" ) ) ) ) ,
44174432 FunctionArg :: Unnamed ( FunctionArgExpr :: Expr ( Expr :: Value ( number( "6" ) ) ) ) ,
44184433 ] ,
4434+ filter: None ,
44194435 over: None ,
44204436 distinct: false ,
44214437 special: false ,
@@ -6888,6 +6904,7 @@ fn parse_time_functions() {
68886904 let select_localtime_func_call_ast = Function {
68896905 name : ObjectName ( vec ! [ Ident :: new( func_name) ] ) ,
68906906 args : vec ! [ ] ,
6907+ filter : None ,
68916908 over : None ,
68926909 distinct : false ,
68936910 special : false ,
@@ -7374,6 +7391,7 @@ fn parse_pivot_table() {
73747391 args: ( vec![ FunctionArg :: Unnamed ( FunctionArgExpr :: Expr (
73757392 Expr :: CompoundIdentifier ( vec![ Ident :: new( "a" ) , Ident :: new( "amount" ) , ] )
73767393 ) ) ] ) ,
7394+ filter: None ,
73777395 over: None ,
73787396 distinct: false ,
73797397 special: false ,
@@ -7523,6 +7541,7 @@ fn parse_pivot_unpivot_table() {
75237541 args: ( vec![ FunctionArg :: Unnamed ( FunctionArgExpr :: Expr (
75247542 Expr :: Identifier ( Ident :: new( "population" ) )
75257543 ) ) ] ) ,
7544+ filter: None ,
75267545 over: None ,
75277546 distinct: false ,
75287547 special: false ,
0 commit comments