Skip to content

Conversation

@LianxinGao
Copy link
Contributor

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

@LianxinGao LianxinGao requested a review from zyang-tudb October 18, 2022 09:23
@LianxinGao LianxinGao changed the title convert cypher expression to lynxExpression of match Convert cypher expression to lynxExpression of match Oct 18, 2022
)(implicit plannerContext: LogicalPlannerContext
): LogicalNode = {
//run match

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove empty newline

Comment on lines +68 to +73
val newLeftNodePattern =
ConvertPatternExpressionToLynxExpression.convertNodePattern(leftNode)
val newRelationshipPattern =
ConvertPatternExpressionToLynxExpression.convertRelationshipPattern(relationship)
val newRightNodePattern =
ConvertPatternExpressionToLynxExpression.convertNodePattern(rightNode)
Copy link
Contributor

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

@LianxinGao LianxinGao changed the title Convert cypher expression to lynxExpression of match [WIP] Convert cypher expression to lynxExpression of match Oct 20, 2022
@LianxinGao LianxinGao changed the title [WIP] Convert cypher expression to lynxExpression of match Convert cypher expression to lynxExpression of match Oct 25, 2022
element match {
//match (m:label1)
case np: NodePattern =>
LogicalPatternMatch(np, Seq.empty)
Copy link
Contributor

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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mp->leftRelationshipChain

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.

4 participants