Daniel Kuppitz created TINKERPOP3-758:
-----------------------------------------

             Summary: match() and profile() don't play well together
                 Key: TINKERPOP3-758
                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-758
             Project: TinkerPop 3
          Issue Type: Bug
            Reporter: Daniel Kuppitz


{code}
// find songs and their most common followers; keep only those songs that are 
common followers themselves
 
gremlin> 
g.V().hasLabel("song").match(__.as("song").out("followedBy").groupCount().order(local).by(valueDecr).mapKeys().limit(1).as("mostCommonFollower")).select("song","mostCommonFollower").by("name").sideEffect(select("mostCommonFollower").aggregate("mcf")).where("song",
 within("mcf")).profile().cap(TraversalMetrics.METRICS_KEY)
org.apache.tinkerpop.gremlin.process.traversal.step.sideEffect.ProfileStep 
cannot be cast to 
org.apache.tinkerpop.gremlin.process.traversal.step.map.MatchStep$MatchEndStep
Display stack trace? [yN]
{code}


For easier copy & pasting and better readability:

{code}
g.V().hasLabel("song").match(
    
__.as("song").out("followedBy").groupCount().order(local).by(valueDecr).mapKeys().limit(1).as("mostCommonFollower")
).select("song","mostCommonFollower").by("name").sideEffect(
    select("mostCommonFollower").aggregate("mcf")
).where("song", within("mcf")).profile().cap(TraversalMetrics.METRICS_KEY)
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to