You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Stephen Mallette (Jira)" <ji...@apache.org> on 2021/01/05 12:44:00 UTC

[jira] [Updated] (TINKERPOP-2499) PathRetractionStrategy returns inconsistent results when match() is not detected as the final step

     [ https://issues.apache.org/jira/browse/TINKERPOP-2499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephen Mallette updated TINKERPOP-2499:
----------------------------------------
    Summary: PathRetractionStrategy returns inconsistent results when match() is not detected as the final step  (was: PathRetractionStrategy returns inconsistent results when identity() follows match())

> PathRetractionStrategy returns inconsistent results when match() is not detected as the final step
> --------------------------------------------------------------------------------------------------
>
>                 Key: TINKERPOP-2499
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2499
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: process
>    Affects Versions: 3.4.9
>            Reporter: Stephen Mallette
>            Priority: Major
>
> This issue comes from TINKERPOP-2481 where it was originally noted that perhaps {{IdentityRemovalStrategy}} had something to do with the following:
> {code}
> gremlin> g.V().match(__.as("a").out("knows").as("b")).identity()
> ==>[]
> ==>[]
> gremlin> g.withStrategies(IdentityRemovalStrategy.instance()).V().match(__.as("a").out("knows").as("b")).identity()
> ==>[a:v[1],b:v[2]]
> ==>[a:v[1],b:v[4]]
> gremlin> g.withoutStrategies(PathRetractionStrategy).V().match(__.as("a").out("knows").as("b")).identity()
> ==>[a:v[1],b:v[2]]
> ==>[a:v[1],b:v[4]]
> {code}
> but it is not a good idea to fix the behavior of one strategy by way of another so {{PathRetractionStrategy}} needs to get a bit smarter.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)