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

Labeled a SideEffectCapStep cause problems.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.1-incubating
    • 3.1.3, 3.2.1
    • process
    • None

    Description

      gremlin> g.V().hasLabel("person").aggregate("x").by("age").cap("x").as("y","z").select("x","y","z")
      ==>[x:[29, 27, 32, 35], y:[[29, 27, 32, 35], [29, 27, 32, 35]], z:[[29, 27, 32, 35], [29, 27, 32, 35]]] // BAD
      gremlin> g.V().hasLabel("person").aggregate("x").by("age").cap("x").filter{true}.as("y","z").select("x","y","z")
      ==>[x:[29, 27, 32, 35], y:[29, 27, 32, 35], z:[29, 27, 32, 35]] // GOOD
      

      This only seems to be an issue with AggregateStep

      gremlin> g.V().hasLabel("person").groupCount("a").cap("a").as("b","c").select("a","b","c")
      ==>[a:[v[1]:1, v[2]:1, v[4]:1, v[6]:1], b:[v[1]:1, v[2]:1, v[4]:1, v[6]:1], c:[v[1]:1, v[2]:1, v[4]:1, v[6]:1]]
      gremlin> g.V().hasLabel("person").aggregate("a").cap("a").as("b","c").select("a","b","c")
      ==>[a:[v[1], v[2], v[4], v[6]], b:[[v[1], v[2], v[4], v[6]], [v[1], v[2], v[4], v[6]]], c:[[v[1], v[2], v[4], v[6]], [v[1], v[2], v[4], v[6]]]]
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: