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

Make MatchStep analyze mid-clause variables for executing ordering purposes.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.6
    • Fix Version/s: 3.2.7, 3.3.1
    • Component/s: process
    • Labels:
      None

      Description

      gremlin> graph = TinkerGraph.open()
      ==>tinkergraph[vertices:0 edges:0]
      gremlin> graph.io(graphml()).readGraph("data/grateful-dead.xml")
      ==>null
      gremlin> g = graph.traversal()
      ==>graphtraversalsource[tinkergraph[vertices:808 edges:8049], standard]
      gremlin> 
      gremlin> t = g.V().match(
      ......1>         __.as("sunshine").has("song", "name", "HERE COMES SUNSHINE"),
      ......2>         __.as("sunshine").map(inE("followedBy").values("weight").mean()).as("avg_weight"),
      ......3>         __.as("sunshine").inE("followedBy").as("x"),
      ......4>         __.as("x").filter(values("weight").where(gte("avg_weight"))).outV().as("followers")
      ......5>       ).
      ......6>       select("followers").by("name"); []
      gremlin> 
      gremlin> t.clone().limit(2)
      ==>LOOKS LIKE RAIN
      ==>PROMISED LAND
      gremlin> t
      Neither the sideEffects, map, nor path has a avg_weight-key: WherePredicateStep(gte(avg_weight))
      Type ':help' or ':h' for help.
      Display stack trace? [yN]
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                okram Marko A. Rodriguez
                Reporter:
                okram Marko A. Rodriguez
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: