@@ -381,7 +381,7 @@ mod function_expression_tests {
381
381
382
382
#[ test]
383
383
fn test_expression_function_basic_empty_args ( ) {
384
- run_sunny_day_test (
384
+ run_sunny_day_expression_test (
385
385
"SELECT abc();" ,
386
386
& function_expression ( "abc" , FunctionArg :: default ( ) , None , None ) ,
387
387
) ;
@@ -393,7 +393,7 @@ mod function_expression_tests {
393
393
distinct : false ,
394
394
arguments : vec ! [ FunctionArgType :: Wildcard ] ,
395
395
} ;
396
- run_sunny_day_test (
396
+ run_sunny_day_expression_test (
397
397
"SELECT abc(*);" ,
398
398
& function_expression ( "abc" , expected_arg, None , None ) ,
399
399
) ;
@@ -405,7 +405,7 @@ mod function_expression_tests {
405
405
distinct : false ,
406
406
arguments : vec ! [ FunctionArgType :: Expression ( numeric_literal_expression( "1" ) ) ] ,
407
407
} ;
408
- run_sunny_day_test (
408
+ run_sunny_day_expression_test (
409
409
"SELECT abc(1);" ,
410
410
& function_expression ( "abc" , expected_arg, None , None ) ,
411
411
) ;
@@ -417,7 +417,7 @@ mod function_expression_tests {
417
417
distinct : true ,
418
418
arguments : vec ! [ FunctionArgType :: Expression ( numeric_literal_expression( "1" ) ) ] ,
419
419
} ;
420
- run_sunny_day_test (
420
+ run_sunny_day_expression_test (
421
421
"SELECT abc(distinct 1);" ,
422
422
& function_expression ( "abc" , expected_arg, None , None ) ,
423
423
) ;
@@ -432,7 +432,7 @@ mod function_expression_tests {
432
432
FunctionArgType :: Expression ( numeric_literal_expression( "2" ) ) ,
433
433
] ,
434
434
} ;
435
- run_sunny_day_test (
435
+ run_sunny_day_expression_test (
436
436
"SELECT abc(1, 2);" ,
437
437
& function_expression ( "abc" , expected_arg, None , None ) ,
438
438
) ;
@@ -459,7 +459,7 @@ mod function_expression_tests {
459
459
) ) ,
460
460
] ,
461
461
} ;
462
- run_sunny_day_test (
462
+ run_sunny_day_expression_test (
463
463
"SELECT abc(1 + 2, 4 + 5 / 6);" ,
464
464
& function_expression ( "abc" , expected_arg, None , None ) ,
465
465
) ;
@@ -478,7 +478,7 @@ mod function_expression_tests {
478
478
} ] ,
479
479
) ] ,
480
480
} ;
481
- run_sunny_day_test (
481
+ run_sunny_day_expression_test (
482
482
"SELECT abc(1 order by 2);" ,
483
483
& function_expression ( "abc" , expected_arg, None , None ) ,
484
484
) ;
@@ -514,7 +514,7 @@ mod function_expression_tests {
514
514
] ,
515
515
) ] ,
516
516
} ;
517
- run_sunny_day_test (
517
+ run_sunny_day_expression_test (
518
518
"SELECT abc(1 order by 2 asc, 3 desc, 4 nulls first, 5 desc nulls last);" ,
519
519
& function_expression ( "abc" , expected_arg, None , None ) ,
520
520
) ;
@@ -533,7 +533,7 @@ mod function_expression_tests {
533
533
numeric_literal_expression ( "3" ) ,
534
534
) ;
535
535
536
- run_sunny_day_test (
536
+ run_sunny_day_expression_test (
537
537
"SELECT abc(1) filter (where 2 > 3);" ,
538
538
& function_expression ( "abc" , expected_arg, Some ( Box :: new ( filter_clause) ) , None ) ,
539
539
) ;
@@ -553,7 +553,7 @@ mod function_expression_tests {
553
553
frame_spec : None ,
554
554
} ;
555
555
556
- run_sunny_day_test (
556
+ run_sunny_day_expression_test (
557
557
"SELECT abc(1) over a;" ,
558
558
& function_expression ( "abc" , expected_arg, None , Some ( over_clause) ) ,
559
559
) ;
@@ -573,7 +573,7 @@ mod function_expression_tests {
573
573
frame_spec : None ,
574
574
} ;
575
575
576
- run_sunny_day_test (
576
+ run_sunny_day_expression_test (
577
577
"SELECT abc(1) over (partition by 1);" ,
578
578
& function_expression ( "abc" , expected_arg, None , Some ( over_clause) ) ,
579
579
) ;
@@ -597,7 +597,7 @@ mod function_expression_tests {
597
597
frame_spec : None ,
598
598
} ;
599
599
600
- run_sunny_day_test (
600
+ run_sunny_day_expression_test (
601
601
"SELECT abc(1) over (order by 1 asc nulls last);" ,
602
602
& function_expression ( "abc" , expected_arg, None , Some ( over_clause) ) ,
603
603
) ;
@@ -626,7 +626,7 @@ mod function_expression_tests {
626
626
} ) ,
627
627
} ;
628
628
629
- run_sunny_day_test (
629
+ run_sunny_day_expression_test (
630
630
"SELECT abc(1) over (a groups between 1 preceding and current row exclude current row);" ,
631
631
& function_expression ( "abc" , expected_arg, None , Some ( over_clause) ) ,
632
632
) ;
0 commit comments