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

Function AR_EXP_Evaluate

src/arithmetic/arithmetic_expression.c:643–665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

641}
642
643SIValue AR_EXP_Evaluate
644(
645 AR_ExpNode *root,
646 const Record r
647) {
648 SIValue result;
649 AR_EXP_Result res = _AR_EXP_Evaluate(root, r, &result);
650
651 if(res == EVAL_ERR) {
652 ErrorCtx_RaiseRuntimeException(NULL);
653 // otherwise return NULL;
654 // the query-level error will be emitted after cleanup
655 return SI_NullVal();
656 }
657
658 // at least one param node was encountered during evaluation,
659 // tree should be parameters free, try reducing the tree
660 if(res == EVAL_FOUND_PARAM) {
661 AR_EXP_ReduceToScalar(root, true, NULL);
662 }
663
664 return result;
665}
666
667void AR_EXP_Aggregate(AR_ExpNode *root, const Record r) {
668 if(AGGREGATION_NODE(root)) {

Callers 15

_predicateTreeToRangeFunction · 0.85
_applyPredicateFiltersFunction · 0.85
FilterTree_applyFiltersFunction · 0.85
_FilterTree_Compact_AndFunction · 0.85
_FilterTree_Compact_OrFunction · 0.85
_FilterTree_Compact_XOrFunction · 0.85
_FilterTree_Compact_PredFunction · 0.85
_AST_Extract_ParamsFunction · 0.85
AR_EXP_ReduceToScalarFunction · 0.85
_evaluate_proc_argsFunction · 0.85

Calls 4

_AR_EXP_EvaluateFunction · 0.85
SI_NullValFunction · 0.85
AR_EXP_ReduceToScalarFunction · 0.85

Tested by

no test coverage detected