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

map(union(fold())) bug

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.5
    • Fix Version/s: 3.3.2
    • Component/s: process
    • Labels:
      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

            • Assignee:
              dkuppitz Daniel Kuppitz
              Reporter:
              rdale Robert Dale

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment