Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-1716

Traversal strategies are not applied with remote in Gremlin Console

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.3, 3.2.5
    • 3.3.0
    • server
    • None

    Description

      Originally from a StackOverflow post:

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

      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()
      

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

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

      Attachments

        Activity

          People

            spmallette Stephen Mallette
            pluradj Jason Plurad
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: