-
Notifications
You must be signed in to change notification settings - Fork 456
Open
Labels
Description
Describe the bug
As titled.
When executing the following query on LDBC 100, applying DegreeFusionRule
or not generates two different results, which is not as expected:
With DegreeFusionRule
:
@neo4j> Match (tag:TAG)<-[:HASTAG]-(message:POST|COMMENT)
Where tag.name = "North_German_Confederation"
WITH DISTINCT message
MATCH (message)<-[:LIKES]-(liker:PERSON)
WITH message, count(liker) as likeCount
Return count(message);
+-------+
| $f0 |
+-------+
| 70482 |
+-------+
Without DegreeFusionRule
:
@neo4j> Match (tag:TAG)<-[:HASTAG]-(message:POST|COMMENT)
Where tag.name = "North_German_Confederation"
WITH DISTINCT message
MATCH (message)<-[:LIKES]-(liker:PERSON)
WITH message, count(liker) as likeCount
Return count(message);
+------+
| $f0 |
+------+
| 6528 |
+------+