MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / AR_FuncIsAggregate

Function AR_FuncIsAggregate

src/arithmetic/func_desc.c:112–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112bool AR_FuncIsAggregate
113(
114 const char *func_name
115) {
116 size_t len = strlen(func_name);
117 char lower_func_name[len + 1];
118 str_tolower_ascii(func_name, lower_func_name, &len);
119 AR_FuncDesc *f = raxFind(__aeRegisteredFuncs,
120 (unsigned char *)lower_func_name, len);
121
122 if(f == raxNotFound) return false;
123
124 return f->aggregate;
125}
126

Callers 3

_ValidateFunctionCallFunction · 0.85

Calls 1

str_tolower_asciiFunction · 0.85

Tested by

no test coverage detected