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

Function rollup_three_cols

nodedb-sql/src/planner/grouping_sets.rs:300–304  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

298
299 #[test]
300 fn rollup_three_cols() {
301 let gb = parse_group_by("SELECT a, b, c, SUM(x) FROM t GROUP BY ROLLUP (a, b, c)");
302 let result = expand_group_by(&gb).unwrap().unwrap();
303 assert_eq!(result.grouping_sets.len(), 4); // (a,b,c),(a,b),(a),()
304 }
305}

Callers

nothing calls this directly

Calls 2

parse_group_byFunction · 0.85
expand_group_byFunction · 0.85

Tested by

no test coverage detected