MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / is_aggregate_func

Function is_aggregate_func

src/cypher/cypher.c:3724–3728  ·  view source on GitHub ↗

Check if a function name is an aggregate */

Source from the content-addressed store, hash-verified

3722
3723/* Check if a function name is an aggregate */
3724static bool is_aggregate_func(const char *func) {
3725 return func &&
3726 (strcmp(func, "COUNT") == 0 || strcmp(func, "SUM") == 0 || strcmp(func, "AVG") == 0 ||
3727 strcmp(func, "MIN") == 0 || strcmp(func, "MAX") == 0 || strcmp(func, "COLLECT") == 0);
3728}
3729
3730/* Append `val` to a string list only if not already present — i.e. maintain a
3731 * set of distinct values. Used by COUNT(DISTINCT x) (#239). */

Callers 9

with_agg_build_keyFunction · 0.85
with_agg_find_or_createFunction · 0.85
with_agg_accumulateFunction · 0.85
execute_with_aggregateFunction · 0.85
execute_with_clauseFunction · 0.85
ret_agg_accumulateFunction · 0.85
ret_agg_build_keyFunction · 0.85
ret_agg_emit_rowFunction · 0.85
execute_return_clauseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected