You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by GitBox <gi...@apache.org> on 2019/06/04 14:51:41 UTC
[GitHub] [tinkerpop] dkuppitz opened a new pull request #1124:
TINKERPOP-2230 Fixed bug in match() step
dkuppitz opened a new pull request #1124: TINKERPOP-2230 Fixed bug in match() step
URL: https://github.com/apache/tinkerpop/pull/1124
https://issues.apache.org/jira/browse/TINKERPOP-2230
Fixed a bug where `MatchStep()` didn't determine the correct start step properly.
**Before**
```
gremlin> g.V().match(
......1> __.as('a').out('knows').as('b'),
......2> __.as('b').out('created').as('c'))
==>[a:v[1],b:v[4],c:v[5]]
==>[a:v[1],b:v[4],c:v[3]]
gremlin> g.V().match(
......1> __.as('b').out('created').as('c'),
......2> __.as('a').out('knows').as('b'))
The provided match pattern is unsolvable: [[MatchStartStep(a), VertexStep(OUT,[knows],vertex), MatchEndStep(b)], [MatchStartStep(b), VertexStep(OUT,[created],vertex), MatchEndStep(c)]]
```
**Now**
```
gremlin> g.V().match(
......1> __.as('a').out('knows').as('b'),
......2> __.as('b').out('created').as('c'))
==>[a:v[1],b:v[4],c:v[5]]
==>[a:v[1],b:v[4],c:v[3]]
gremlin> g.V().match(
......1> __.as('b').out('created').as('c'),
......2> __.as('a').out('knows').as('b'))
==>[a:v[1],b:v[4],c:v[5]]
==>[a:v[1],b:v[4],c:v[3]]
```
`docker/build.sh -t -i` passed.
VOTE +1
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services