-
Notifications
You must be signed in to change notification settings - Fork 1
Convert cypher expression to lynxExpression of match #371
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
base: main
Are you sure you want to change the base?
Conversation
| )(implicit plannerContext: LogicalPlannerContext | ||
| ): LogicalNode = { | ||
| //run match | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove empty newline
| val newLeftNodePattern = | ||
| ConvertPatternExpressionToLynxExpression.convertNodePattern(leftNode) | ||
| val newRelationshipPattern = | ||
| ConvertPatternExpressionToLynxExpression.convertRelationshipPattern(relationship) | ||
| val newRightNodePattern = | ||
| ConvertPatternExpressionToLynxExpression.convertNodePattern(rightNode) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to assign vals here. Should be able to do this in-place in line 75
| element match { | ||
| //match (m:label1) | ||
| case np: NodePattern => | ||
| LogicalPatternMatch(np, Seq.empty) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
np->nodePattern
| relationship: RelationshipPattern, | ||
| rightNode: NodePattern | ||
| ) => | ||
| val mp = matchPattern(leftChain) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mp->leftRelationshipChain
What changes were proposed in this pull request?
as title
Why are the changes needed?
First step of DeCypher
Does this PR introduce any user-facing change?
No
How was this patch tested?
Not yet