[BUG] Degree Fusion occurs bug in Insight Runtime
- Dominant language
- C++
- Stars
- 3.6k
- Forks
- 468
- Avg merge
- 29m
- Merged PRs (30d)
- 1
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 |
+------+
```
Contributor guide
Assessment
This issue has not been assessed yet.