MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / extract_aggregate_inside_cast

Function extract_aggregate_inside_cast

nodedb-sql/src/aggregate_walk.rs:329–338  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 3

first_exprFunction · 0.85
functionsFunction · 0.85
extract_aggregatesFunction · 0.70

Tested by

no test coverage detected