()
| 327 | |
| 328 | #[test] |
| 329 | fn extract_aggregate_inside_cast() { |
| 330 | let aggs = extract_aggregates( |
| 331 | &first_expr("SELECT CAST(SUM(x) AS TEXT) AS n FROM t"), |
| 332 | "n", |
| 333 | &functions(), |
| 334 | ) |
| 335 | .unwrap(); |
| 336 | assert_eq!(aggs.len(), 1); |
| 337 | assert_eq!(aggs[0].function, "sum"); |
| 338 | } |
| 339 | |
| 340 | #[test] |
| 341 | fn extract_aggregate_inside_case() { |
nothing calls this directly
no test coverage detected