Skip to content

Fix issue #945 unaliased match clause giving incorrect results in count - #987

Closed
maazzzzz wants to merge 1 commit into
apache:masterfrom
maazzzzz:unaliased_match_clause
Closed

Fix issue #945 unaliased match clause giving incorrect results in count#987
maazzzzz wants to merge 1 commit into
apache:masterfrom
maazzzzz:unaliased_match_clause

Conversation

@maazzzzz

@maazzzzzmaazzzzz commented Jun 13, 2023

Copy link
Copy Markdown
Contributor

unaliased match clause would give incorrect results in count because the node wasn't being added to the join tree. Fixed it by adding unaliased match clauses with valid label names to join tree.

  • added entry for unaliased nodes with label names in macro
  • added regression test for proposed change

resolves#945

@maazzzzzmaazzzzz changed the title Fixed #945 unaliased match clauses added to output nodesFix issue #945 unaliased match clauses giving incorrect resultsJun 13, 2023
@maazzzzzmaazzzzz changed the title Fix issue #945 unaliased match clauses giving incorrect resultsFix issue #945 unaliased match clause giving incorrect results in countJun 13, 2023
@MuhammadTahaNaveed

Copy link
Copy Markdown
Member

@jrgemignani can you please review this one. I think this was missed.

@MuhammadTahaNaveed

Copy link
Copy Markdown
Member

@maazzzzz Does it produce correct result for the below query?

MATCH () RETURN count(*)

@maazzzzz

Copy link
Copy Markdown
ContributorAuthor

@MuhammadTahaNaveed checked and it doesn't, missed that case when testing. I'll try looking into it if I get the time but if anyone else could look into it, thatd be great.

@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open 45 days with no activity. Remove "Abondoned" label or comment or this will be closed in 7 days.

@github-actionsgithub-actionsBot added the Stale Stale issues/PRs label May 11, 2024
@MuhammadTahaNaveedMuhammadTahaNaveed removed the Stale Stale issues/PRs label May 11, 2024
@MuhammadTahaNaveed

Copy link
Copy Markdown
Member

Issue addressed by this PR has already been resolved by PR #1288

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

If an alias is not specified, the count result is incorrect.

2 participants

@maazzzzz@MuhammadTahaNaveed