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

Function agg_scalar

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

Source from the content-addressed store, hash-verified

140
141#[test]
142fn agg_scalar() {
143 let p = plan_one("SELECT * FROM ARRAY_AGG('g', 'qual', 'sum')").unwrap();
144 match p {
145 SqlPlan::ArrayAgg {
146 name,
147 attr,
148 reducer,
149 group_by_dim,
150 ..
151 } => {
152 assert_eq!(name, "g");
153 assert_eq!(attr, "qual");
154 assert_eq!(reducer, ArrayReducerAst::Sum);
155 assert!(group_by_dim.is_none());
156 }
157 other => panic!("expected ArrayAgg, got {other:?}"),
158 }
159}
160
161#[test]
162fn agg_grouped() {

Callers

nothing calls this directly

Calls 1

plan_oneFunction · 0.85

Tested by

no test coverage detected