Skip to content
Open
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
4 changes: 3 additions & 1 deletion src/processor/operator/intersect/intersect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ void Intersect::intersectLists() {
// Here we need to slice all selVectors that have been previously intersected, as all these
// lists need to be selected synchronously to read payloads correctly.
sliceSelVectors(selVectorsForIntersectedLists, leftSelVector);
leftSelVector.setToUnfiltered();
// twoWayIntersect moved the surviving left IDs to the front of outKeyVector, so the next
// round reads its first getSelSize() entries in order.
leftSelVector.setToUnfiltered(leftSelVector.getSelSize());
selVectorsForIntersectedLists.push_back(intersectSelVectors[i + 1].get());
}
outKeyVector->state->getSelVectorUnsafe().setSelSize(leftSelVector.getSelSize());
Expand Down
Loading