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

Function _implicit_result

src/execution_plan/execution_plan.c:342–348  ·  view source on GitHub ↗

Add an implicit "Result" operation to ExecutionPlan if necessary.

Source from the content-addressed store, hash-verified

340
341// Add an implicit "Result" operation to ExecutionPlan if necessary.
342static inline void _implicit_result(ExecutionPlan *plan) {
343 // If the query culminates in a procedure call, it implicitly returns results.
344 if(plan->root->type == OPType_PROC_CALL) {
345 OpBase *results_op = NewResultsOp(plan);
346 ExecutionPlan_UpdateRoot(plan, results_op);
347 }
348}
349
350ExecutionPlan *ExecutionPlan_FromTLS_AST(void) {
351 AST *ast = QueryCtx_GetAST();

Callers 1

Calls 2

NewResultsOpFunction · 0.85
ExecutionPlan_UpdateRootFunction · 0.85

Tested by

no test coverage detected