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

Function AR_EXP_ContainsAggregation

src/arithmetic/arithmetic_expression.c:763–774  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

761}
762
763bool AR_EXP_ContainsAggregation(AR_ExpNode *root) {
764 if(AGGREGATION_NODE(root)) return true;
765
766 if(AR_EXP_IsOperation(root)) {
767 for(int i = 0; i < root->op.child_count; i++) {
768 AR_ExpNode *child = root->op.children[i];
769 if(AR_EXP_ContainsAggregation(child)) return true;
770 }
771 }
772
773 return false;
774}
775
776bool AR_EXP_ContainsFunc(const AR_ExpNode *root, const char *func) {
777 if(root == NULL) return false;

Callers 1

_migrate_expressionsFunction · 0.85

Calls 1

AR_EXP_IsOperationFunction · 0.85

Tested by

no test coverage detected