You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Jason Plurad (JIRA)" <ji...@apache.org> on 2017/07/09 21:25:00 UTC

[jira] [Created] (TINKERPOP-1716) Traversal strategies are not applied with remote in Gremlin Console

Jason Plurad created TINKERPOP-1716:
---------------------------------------

             Summary: Traversal strategies are not applied with remote in Gremlin Console
                 Key: TINKERPOP-1716
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1716
             Project: TinkerPop
          Issue Type: Bug
          Components: server
    Affects Versions: 3.2.5, 3.2.3
            Reporter: Jason Plurad


Originally from a [StackOverflow post|https://stackoverflow.com/questions/44907843/can-strategies-be-used-with-remote-traversal-in-gremlin]:

This subgraph strategy works (only the `battled` edges are returned) with a remote from Gremlin-Python:

{noformat}
from gremlin_python import statics
from gremlin_python.structure.graph import Graph
from gremlin_python.process.graph_traversal import __
from gremlin_python.process.strategies import *
from gremlin_python.driver.driver_remote_connection import DriverRemoteConnection
statics.load_statics(globals())

graph = Graph()
g = graph.traversal().withRemote(DriverRemoteConnection('ws://localhost:8182/gremlin','g')).withStrategies(SubgraphStrategy(edges=__.hasLabel('battled')))
g.E().label().groupCount().toList()
{noformat}

But the subgraph strategy does not work (all edges are returned) with a remote from the Gremlin Console:

{noformat}
graph = EmptyGraph.instance()
g = graph.traversal().withRemote('conf/remote-graph.properties').withStrategies(SubgraphStrategy.build().edges(__.hasLabel("battled")).create())
g.E().label().groupCount().toList()
{noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)