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

Function AR_EXP_Evaluate_NoThrow

src/arithmetic/arithmetic_expression.c:626–641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

624}
625
626SIValue AR_EXP_Evaluate_NoThrow(AR_ExpNode *root, const Record r) {
627 SIValue result;
628 AR_EXP_Result res = _AR_EXP_Evaluate(root, r, &result);
629
630 if(res == EVAL_ERR) {
631 return SI_NullVal(); // Otherwise return NULL; the query-level error will be emitted after cleanup.
632 }
633
634 // at least one param node was encountered during evaluation,
635 // tree should be parameters free, try reducing the tree
636 if(res == EVAL_FOUND_PARAM) {
637 AR_EXP_ReduceToScalar(root, true, NULL);
638 }
639
640 return result;
641}
642
643SIValue AR_EXP_Evaluate
644(

Callers 2

AR_LIST_COMPREHENSIONFunction · 0.85
AR_REDUCEFunction · 0.85

Calls 3

_AR_EXP_EvaluateFunction · 0.85
SI_NullValFunction · 0.85
AR_EXP_ReduceToScalarFunction · 0.85

Tested by

no test coverage detected