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

Function AR_EXP_Aggregate

src/arithmetic/arithmetic_expression.c:667–681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665}
666
667void AR_EXP_Aggregate(AR_ExpNode *root, const Record r) {
668 if(AGGREGATION_NODE(root)) {
669 AR_EXP_Result res = _AR_EXP_EvaluateFunctionCall(root, r, NULL);
670 if(res == EVAL_ERR) {
671 ErrorCtx_RaiseRuntimeException(NULL); // Raise an exception if we're in a run-time context.
672 return;
673 }
674 } else if(AR_EXP_IsOperation(root)) {
675 // keep searching for aggregation nodes
676 for(int i = 0; i < root->op.child_count; i++) {
677 AR_ExpNode *child = root->op.children[i];
678 AR_EXP_Aggregate(child, r);
679 }
680 }
681}
682
683void _AR_EXP_FinalizeAggregations
684(

Callers 1

_aggregateRecordFunction · 0.85

Calls 3

AR_EXP_IsOperationFunction · 0.85

Tested by

no test coverage detected