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

Semantics of BarrierSteps in TraversalParent global traversals is wrong.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.1-incubating
    • Fix Version/s: 3.2.0-incubating
    • Component/s: process
    • Labels:

      Description

      Suppose the following traversal:

      g.V.union(outE().count(), inE().count())
      

      Given that count() is a ReducingBarrierStep and thus, continues to pull until there are no more results, you would expect the result set to be:

      [6,6]
      

      However, its actually this:

      [3,0]
      [0,1]
      [0,3]
      [2,1]
      [0,1]
      [1,0]
      

      That is, for each traverser into union(), the count() is calculated.

      In OLAP, the result is [6,6] as expected.

      What should we do?

        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: