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

NPE with OLTP nested group() in an OLAP group() traversal

    XMLWordPrintableJSON

    Details

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

      Description

      graph = TinkerGraph.open()
      graph.io(graphml()).readGraph('data/grateful-dead.xml')
      g = graph.traversal().withComputer()
      g.V().hasLabel('song').match(
          __.as('songV').values('name').as('songName'),
          __.as('songV').out('followedBy').as('followedV'),
          __.as('followedV').values('name').as('followedName'),
          __.as('followedV').out('sungBy').as('sungByV'),
          __.as('sungByV').values('name').as('sungBy'),
          __.as('followedV').out('writtenBy').as('writtenByV'),
          __.as('writtenByV').values('name').as('writtenBy')
        ).select('songName','followedName','sungBy','writtenBy').
          group().by(select('songName')).by(group().by(select('followedName')).by(select('sungBy').fold()))
      

      The above causes an NPE. I know why – potentially easy fix.

        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: