-
Notifications
You must be signed in to change notification settings - Fork 132
[opencypher compatibility] Support using exists with dynamic map #973
Conversation
Given a graph with space named "nba" | ||
When executing query: | ||
""" | ||
MATCH(n:player) WHERE EXISTS(n['name']) |
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.
Add a test case for only a part vertex contains property.
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.
ACK.
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.
please add case : match (a:player )-[b:like|:serve]->(c) where exists(b['likeness']) return a
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.
please add case : match (a:player )-[b:like|:serve]->(c) where exists(b['likeness']) return a
This case has been added. Thanks for pointing that out.
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.
match (v:player)-[]->(n) where exists(n["age"]) return n.age
6982044
to
3e4c11f
Compare
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.
Test variable length pattern match.
When executing query: | ||
""" | ||
MATCH(v:player{name:"Tim Duncan"})-[e:like|serve*2]->(v2) | ||
RETURN DISTINCT e, ALL(e IN e WHERE EXISTS(e['likeness'])) |
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.
Is is valid for this same variable name e
as list variable name e
@jievince ?
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.
yes, it's valid. Because after the parser, the inner var has been rewrited to another name
As title.
Support query:
match (n:player) WHERE exists(n['name']) return n
Fixes #841
Depends on vesoft-inc/nebula-common#509