Agg func fixes by jeffreylovitz · Pull Request #946 · RedisGraph/RedisGraph · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/arithmetic/agg_funcs.c
1 change: 1 addition & 0 deletions src/arithmetic/aggregate.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@ inline void *Agg_FuncCtx(AggCtx *ctx) {
inline void Agg_SetResult(struct AggCtx *ctx, SIValue v) {
ctx->result = v;
}

1 change: 1 addition & 0 deletions src/arithmetic/arithmetic_expression.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ void AR_EXP_Aggregate(const AR_ExpNode *root, const Record r) {
/* Aggregate. */
AggCtx *agg = root->op.agg_func;
agg->Step(agg, sub_trees, root->op.child_count);
_AR_EXP_FreeResultsArray(sub_trees, root->op.child_count);
} else {
/* Keep searching for aggregation nodes. */
for(int i = 0; i < root->op.child_count; i++) {
Expand Down
10 changes: 4 additions & 6 deletions src/execution_plan/ops/op_cond_var_len_traverse.c