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 issue #945 unaliased match clause giving incorrect results in count #987

Closed
wants to merge 1 commit into from

Conversation

maazzzzz
Copy link
Contributor

@maazzzzz maazzzzz commented Jun 13, 2023

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

@maazzzzz maazzzzz changed the title Fixed #945 unaliased match clauses added to output nodes Fix issue #945 unaliased match clauses giving incorrect results Jun 13, 2023
@maazzzzz maazzzzz changed the title Fix issue #945 unaliased match clauses giving incorrect results Fix issue #945 unaliased match clause giving incorrect results in count Jun 13, 2023
@MuhammadTahaNaveed
Copy link
Member

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

@MuhammadTahaNaveed
Copy link
Member

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

MATCH () RETURN count(*)

@maazzzzz
Copy link
Contributor Author

@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.

Copy link

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-actions github-actions bot added the Stale Stale issues/PRs label May 11, 2024
@MuhammadTahaNaveed MuhammadTahaNaveed removed the Stale Stale issues/PRs label May 11, 2024
@MuhammadTahaNaveed
Copy link
Member

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

Sign up for free to 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