Skip to content

[BUG] Degree Fusion occurs bug in Insight Runtime #4528

@BingqingLyu

Description

@BingqingLyu

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 |
+------+

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions