[
https://issues.apache.org/jira/browse/TINKERPOP-1307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15300161#comment-15300161
]
Marko A. Rodriguez commented on TINKERPOP-1307:
-----------------------------------------------
Tested user query and it works now too.
{code}
gremlin> g.V().hasLabel('song').match(
gremlin> __.as('songV').values('name').as('songName'),
gremlin> __.as('songV').out('followedBy').as('followedV'),
gremlin> __.as('followedV').values('name').as('followedName'),
gremlin> __.as('followedV').out('sungBy').as('sungByV'),
gremlin> __.as('sungByV').values('name').as('sungBy'),
gremlin> __.as('followedV').out('writtenBy').as('writtenByV'),
gremlin> __.as('writtenByV').values('name').as('writtenBy')
gremlin> ).select('songName','followedName','sungBy','writtenBy').limit(20).
gremlin>
group().by(select('songName')).by(group().by(select('followedName')).by(select('sungBy').fold()))
==>[NOT FADE AWAY:[NEW ORLEANS:[Weir], MAGGIES FARM:[All], SHE BELONGS TO
ME:[Weir_Garcia], IKO IKO:[Garcia], ME AND MY UNCLE:[Weir], GOING DOWN THE ROAD
FEELING BAD:[Garcia], NOBODYS FAULT BUT MINE:[Garcia], KNOCKING ON HEAVENS
DOOR:[Garcia], MORNING DEW:[Garcia]], GOING DOWN THE ROAD FEELING BAD:[ALL
ALONG THE WATCHTOWER:[Weir], NOT FADE AWAY:[Weir], MORNING DEW:[Garcia]], HEY
BO DIDDLEY:[NOT FADE AWAY:[Weir], GOING DOWN THE ROAD FEELING BAD:[Garcia]],
BERTHA:[ME AND MY UNCLE:[Weir], ITS ALL OVER NOW:[Pigpen_Weir], MAMA
TRIED:[Weir], ME AND BOBBY MCGEE:[Weir], MORNING DEW:[Garcia], WHEN I PAINT MY
MASTERPIECE:[Weir]]]
gremlin>
{code}
> NPE with OLTP nested group() in an OLAP group() traversal
> ---------------------------------------------------------
>
> Key: TINKERPOP-1307
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1307
> Project: TinkerPop
> Issue Type: Bug
> Components: process
> Affects Versions: 3.2.0-incubating
> Reporter: Marko A. Rodriguez
> Assignee: Marko A. Rodriguez
>
> {code}
> 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()))
> {code}
> The above causes an NPE. I know why -- potentially easy fix.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)