[master < T0808-MG] Implement foreach clause#351
Conversation
1c09161 to
2d7a57b
Compare
gitbuda
left a comment
There was a problem hiding this comment.
The PR is still in the draft phase, but I put a couple of comments 😄 It has a bunch of stuff, mostly adding new stuff, so the whole PR is mainly about the correctness of the newly added stuff rather than breaking the existing functionalities.
In addition to the comments in the code, please start writing docs pages under memgraph/docs and link them here. Outline basic things and then docs people can take over at some point and build examples and how-to guides 💪
Not far from being ready for 🚀
antaljanosbenjamin
left a comment
There was a problem hiding this comment.
I still have to understand the rule based planner and check the tests, but my brain is burnt out.
|
After today's daily we discussed this PR and we found a good example why the current approach is not good: the second query should return one row, but for us it returns two. That is the main reason we should somehow embed another plane inside FOREACH instead of making one, "linear" plan. Maybe we don't need the embed a plan, we can build one plan, but the Tomorrow we will discuss this in more details. |
|
Another query that doesn't behave correctly in my opinion: It should fail because m shouldn't be defined in RETURN, but it succeeds: |
9cd1ab0 to
2e89108
Compare
2e89108 to
124b070
Compare
antaljanosbenjamin
left a comment
There was a problem hiding this comment.
The improvement is quite good, however there are a few small things to change in my opinion.
9172e92 to
4d74795
Compare
4d74795 to
b130439
Compare
560b19b to
05f58f1
Compare
antaljanosbenjamin
left a comment
There was a problem hiding this comment.
Looking really nice. I commented on small things and plan to have another review tomorrow in the morning, to check SymbolGenerator/CypherMainVisitor again, to make sure I didn't miss anything.
|
docs PR memgraph/docs#355 |
[master < Epic] PR
[master < Task] PR
Closes #308