Skip to content

Projection before Cartesian Product causes only 1 result to be returned #1441

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

Closed
jeffreylovitz opened this issue Nov 18, 2020 · 1 comment · Fixed by #2252
Closed

Projection before Cartesian Product causes only 1 result to be returned #1441

jeffreylovitz opened this issue Nov 18, 2020 · 1 comment · Fixed by #2252
Assignees

Comments

@jeffreylovitz
Copy link
Contributor

The following queries should produce the same results:

MATCH (a), (b) RETURN a.v, b.v
WITH 1 AS x MATCH (a), (b) RETURN a.v, b.v

Instead, the latter produces only a single record.

@swilly22
Copy link
Contributor

GRAPH.profile g "WITH 1 AS x MATCH (a), (b) RETURN a.v, b.v"
1) "Results | Records produced: 1, Execution time: 0.001000 ms"
2) "    Project | Records produced: 1, Execution time: 0.004000 ms"
3) "        Cartesian Product | Records produced: 1, Execution time: 0.002000 ms"
4) "            Project | Records produced: 1, Execution time: 0.004000 ms"
5) "            All Node Scan | (a) | Records produced: 2, Execution time: 0.001000 ms"
6) "            All Node Scan | (b) | Records produced: 1, Execution time: 0.000000 ms"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants