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

Function Record_Merge

src/execution_plan/record.c:123–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123void Record_Merge
124(
125 Record a,
126 const Record b
127) {
128 ASSERT(a->owner == b->owner);
129 uint len = Record_length(a);
130
131 for(uint i = 0; i < len; i++) {
132 RecordEntryType a_type = a->entries[i].type;
133 RecordEntryType b_type = b->entries[i].type;
134
135 if(a_type == REC_TYPE_UNKNOWN && b_type != REC_TYPE_UNKNOWN) {
136 _RecordPropagateEntry(a, b, i, true);
137 }
138 }
139}
140
141// merge entries from `from` into `to`, transfer ownership if transfer_ownership
142// is on

Callers 3

ApplyConsumeFunction · 0.85
_consume_and_mergeFunction · 0.85
ValueHashJoinConsumeFunction · 0.85

Calls 2

Record_lengthFunction · 0.85
_RecordPropagateEntryFunction · 0.85

Tested by

no test coverage detected