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

map(union(fold())) bug

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.5
    • 3.3.2
    • process
    • None

    Description

      Actual:

      gremlin> graph = TinkerFactory.createModern()
      ==>tinkergraph[vertices:6 edges:6]
      gremlin> g = graph.traversal()
      ==>graphtraversalsource[tinkergraph[vertices:6 edges:6], standard]
      gremlin> g.V().valueMap()
      ==>[name:[marko],age:[29]]
      ==>[name:[vadas],age:[27]]
      ==>[name:[lop],lang:[java]]
      ==>[name:[josh],age:[32]]
      ==>[name:[ripple],lang:[java]]
      ==>[name:[peter],age:[35]]
      gremlin> g.V().map(union(values('name'), values('lang').fold()).fold())
      ==>[marko,[]]
      ==>[[],vadas]
      ==>[lop,[java]]
      ==>[[],josh]
      ==>[ripple,[java]]
      ==>[[],peter]
      

      Expected:

      gremlin> g.V().map(union(values('name'), values('lang').fold()).fold())
      ==>[marko,[]]
      ==>[vadas,[]]
      ==>[lop,[java]]
      ==>[josh,[]]
      ==>[ripple,[java]]
      ==>[peter,[]]
      

      List reference: https://groups.google.com/forum/#!topic/gremlin-users/L_fESS6ta0A

      Attachments

        Activity

          People

            dkuppitz Daniel Kuppitz
            rdale Robert Dale
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: