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

EarlyLimitStrategy is too aggresive to promote Limit and thus causing incorrect results

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.6.6
    • 3.6.7
    • process

    Description

      gremlin>   g.V().map(__.in().hasId('1')).limit(2).values('name')
      ==>marko
      gremlin>   g.withoutStrategies(EarlyLimitStrategy).V().map(__.in().hasId('1')).limit(2).values('name')
      ==>marko
      ==>marko 

      Early Limit strategy pulls Limit in front of map steps. However not all map steps allow the cardinality of the results flowing to be same. 

       

      As is shown in example above.

      Attachments

        Activity

          People

            spmallette Stephen Mallette
            prashup Prashant
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: