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

fold() doesn't fold in OLAP

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.2.9
    • Fix Version/s: None
    • Component/s: hadoop
    • Labels:
      None

      Description

      gremlin> g.withSack(0).V().hasLabel("person").as("from","to").
      ......1>            repeat(both().as("to").dedup("from","to").
      ......2>                   sack(sum).by(constant(1))).
      ......3>              emit(hasLabel("person")).
      ......4>            sack().dedup().fold()
      ==>[1,2,3]
      gremlin> g.withComputer().withSack(0).V().hasLabel("person").as("from","to").
      ......1>            repeat(both().as("to").dedup("from","to").
      ......2>                   sack(sum).by(constant(1))).
      ......3>              emit(hasLabel("person")).
      ......4>            sack().dedup().fold()
      ==>[1]
      ==>[2]
      ==>[3]
      

      I only noticed the misbehavior in this particular traversal, other tests looked good, so there must be a step that somehow interferes with fold().

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dkuppitz Daniel Kuppitz
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: