| 97 | } |
| 98 | |
| 99 | static Group *_CreateGroup |
| 100 | ( |
| 101 | OpAggregate *op, |
| 102 | SIValue *keys |
| 103 | ) { |
| 104 | // create a new group, clone group keys |
| 105 | SIValue *group_keys = _build_group_key(keys, op->key_count); |
| 106 | |
| 107 | // get a fresh copy of aggregation functions |
| 108 | AR_ExpNode **agg_exps = _build_aggregate_exps(op); |
| 109 | |
| 110 | return Group_New(group_keys, op->key_count, agg_exps, op->aggregate_count); |
| 111 | } |
| 112 | |
| 113 | static XXH64_hash_t _ComputeGroupKey |
| 114 | ( |
no test coverage detected