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/06/11 15:21:20 UTC

[jira] [Commented] (TINKERPOP-1336) normSack doesn't work in OLAP

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

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

This is a known problem related to sideEffects (and thus, sack operators) being transient in OLAP. There is another ticket on this and there is a big TODO in the codebase as well as that these tests in the {{ProcessXXXSuite}} are {{@IgnoreEngine}}.

> normSack doesn't work in OLAP
> -----------------------------
>
>                 Key: TINKERPOP-1336
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1336
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: process
>    Affects Versions: 3.2.0-incubating
>            Reporter: Daniel Kuppitz
>
> When {{normSack}} is used in OLAP query, all sack values become the same. Maybe that's "expected"..? But then it should be mentioned in the docs.
> {noformat}
> gremlin> g = TinkerFactory.createModern().traversal()
> ==>graphtraversalsource[tinkergraph[vertices:6 edges:6], standard]
> gremlin> a = TinkerFactory.createModern().traversal().withComputer()
> ==>graphtraversalsource[tinkergraph[vertices:6 edges:6], graphcomputer]
> gremlin> g.withSack(0).V().as("v").repeat(outE().sack(sum).by("weight").inV()).times(2).sack().as("w").select("v","w")
> ==>[v:v[1], w:2.0]
> ==>[v:v[1], w:1.4]
> gremlin> g.withSack(0).V().as("v").repeat(outE().sack(sum).by("weight").inV()).times(2).barrier(normSack).sack().as("w").select("v","w")
> ==>[v:v[1], w:0.5882352941176471]
> ==>[v:v[1], w:0.4117647058823529]
> gremlin> a.withSack(0).V().as("v").repeat(outE().sack(sum).by("weight").inV()).times(2).sack().as("w").select("v","w")
> ==>[v:v[1], w:1.4]
> ==>[v:v[1], w:2.0]
> gremlin> a.withSack(0).V().as("v").repeat(outE().sack(sum).by("weight").inV()).times(2).barrier(normSack).sack().as("w").select("v","w")
> ==>[v:v[1], w:0.5]
> ==>[v:v[1], w:0.5]
> {noformat}



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