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

Function agg_grouped

nodedb-sql/src/planner/array_fn/tests.rs:162–175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160
161#[test]
162fn agg_grouped() {
163 let p = plan_one("SELECT * FROM ARRAY_AGG('g', 'qual', 'mean', 'chrom')").unwrap();
164 match p {
165 SqlPlan::ArrayAgg {
166 reducer,
167 group_by_dim,
168 ..
169 } => {
170 assert_eq!(reducer, ArrayReducerAst::Mean);
171 assert_eq!(group_by_dim, Some("chrom".into()));
172 }
173 other => panic!("expected ArrayAgg, got {other:?}"),
174 }
175}
176
177#[test]
178fn agg_unknown_reducer_rejected() {

Callers

nothing calls this directly

Calls 1

plan_oneFunction · 0.85

Tested by

no test coverage detected