You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Marko A. Rodriguez (JIRA)" <ji...@apache.org> on 2016/05/10 22:47:12 UTC

[jira] [Commented] (TINKERPOP-1215) Labeled a SideEffectCapStep cause problems.

    [ https://issues.apache.org/jira/browse/TINKERPOP-1215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15279145#comment-15279145 ] 

Marko A. Rodriguez commented on TINKERPOP-1215:
-----------------------------------------------

The plot thickens. If path calculations are on, it works. ?!

{code}
gremlin> g.withPath().V().hasLabel("person").aggregate("x").by("age").cap('x').as("y").select("y")
==>{29=1, 27=1, 32=1, 35=1}
{code}

> Labeled a SideEffectCapStep cause problems. 
> --------------------------------------------
>
>                 Key: TINKERPOP-1215
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1215
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: process
>    Affects Versions: 3.1.1-incubating
>            Reporter: Marko A. Rodriguez
>
> {code}
> gremlin> g.V().hasLabel("person").aggregate("x").by("age").cap("x").as("y","z").select("x","y","z")
> ==>[x:[29, 27, 32, 35], y:[[29, 27, 32, 35], [29, 27, 32, 35]], z:[[29, 27, 32, 35], [29, 27, 32, 35]]] // BAD
> gremlin> g.V().hasLabel("person").aggregate("x").by("age").cap("x").filter{true}.as("y","z").select("x","y","z")
> ==>[x:[29, 27, 32, 35], y:[29, 27, 32, 35], z:[29, 27, 32, 35]] // GOOD
> {code}
> This only seems to be an issue with {{AggregateStep}}
> {code}
> gremlin> g.V().hasLabel("person").groupCount("a").cap("a").as("b","c").select("a","b","c")
> ==>[a:[v[1]:1, v[2]:1, v[4]:1, v[6]:1], b:[v[1]:1, v[2]:1, v[4]:1, v[6]:1], c:[v[1]:1, v[2]:1, v[4]:1, v[6]:1]]
> gremlin> g.V().hasLabel("person").aggregate("a").cap("a").as("b","c").select("a","b","c")
> ==>[a:[v[1], v[2], v[4], v[6]], b:[[v[1], v[2], v[4], v[6]], [v[1], v[2], v[4], v[6]]], c:[[v[1], v[2], v[4], v[6]], [v[1], v[2], v[4], v[6]]]]
> {code}



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