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

Documentation for Store contradicts itself

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.6
    • Fix Version/s: 3.3.7, 3.4.2
    • Component/s: documentation, process
    • Labels:
      None

      Description

      The Store Step shows the following example:

      gremlin> g.V().store('x').limit(1).cap('x')
      ==>[v[1]]
       
      and continues with the following explanation:
       

      It is interesting to note that there are two results in the store() side-effect even though the interval selection is for 1 object. Realize that when the second object is on its way to the range() filter (i.e. [0..1]), it passes through store() and thus, stored before filtered.

      The problem is that the example does not show this lazy behavior. The correct output would be:

      ==>[v[1], v[2]]

        Attachments

          Activity

            People

            • Assignee:
              spmallette Stephen Mallette
              Reporter:
              martijndwars Martijn Dwars
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: