()
| 339 | |
| 340 | #[test] |
| 341 | fn extract_aggregate_inside_case() { |
| 342 | let aggs = extract_aggregates( |
| 343 | &first_expr("SELECT CASE WHEN x > 0 THEN SUM(y) ELSE 0 END FROM t"), |
| 344 | "r", |
| 345 | &functions(), |
| 346 | ) |
| 347 | .unwrap(); |
| 348 | assert_eq!(aggs.len(), 1); |
| 349 | assert_eq!(aggs[0].function, "sum"); |
| 350 | } |
| 351 | |
| 352 | #[test] |
| 353 | fn extract_aggregate_inside_coalesce() { |
nothing calls this directly
no test coverage detected