Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect counts for relationships with direction BOTH #6881

Merged
merged 1 commit into from Apr 8, 2016
Merged

Fix incorrect counts for relationships with direction BOTH #6881

merged 1 commit into from Apr 8, 2016

Conversation

davidegrohmann
Copy link
Contributor

The previous counts store based implementation was simply summing the
count for outgoing relationships with the count for incoming
relationships. This is not correct since we count twice all the
relationships that same node as source and target. This commit will
remove the counts store shortcuts for such cases. We could
reintroduce the counts store based implementation when we'll start
counting loop relationships on nodes as well.

@@ -260,45 +260,6 @@ class MatchAggregationsBackedByCountStoreAcceptanceTest extends ExecutionEngineF
})
}

test("counts relationships with type, any direction and labeled source node without using count store") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests should remain, but change the test to assert that the count store is no longer used.

The previous counts store based implementation was simply summing the
count for outgoing relationships with the count for incoming
relationships.  This is not correct since we count twice all the
relationships that same node as source and target. This commit will
remove the counts store shortcuts for such cases.  We could
reintroduce the counts store based implementation when we'll start
counting loop relationships on nodes as well.
@craigtaverner craigtaverner merged commit 2b8dab5 into neo4j:3.0 Apr 8, 2016
@craigtaverner craigtaverner deleted the 3.0-fix-rel-count-both-dir branch April 8, 2016 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants