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

Semantics of BarrierSteps in TraversalParent global traversals is wrong.

VotersStop watchingWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.1-incubating
    • 3.2.0-incubating
    • process

    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment