tinkerpop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc de Lignie (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TINKERPOP-1643) Something's broke in OLAP
Date Mon, 10 Jun 2019 13:50:00 GMT

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

Marc de Lignie commented on TINKERPOP-1643:
-------------------------------------------

The original example including as/select and dedup() can be simplified.
All output is from gremlin-console-3.3.7

g = TinkerFactory.createModern().traversal()

With emit() in front:
gremlin> g.withComputer().V(6).emit().repeat(both()).times(1).count()
==>2
gremlin> g.withComputer().V(6).emit().repeat(both().dedup()).times(1).count()
==>1
==>1
gremlin> g.withComputer().V(6).emit().repeat(both()).times(1).barrier().count()
==>1
==>1

With emit() behind:
gremlin> g.withComputer().V(6).repeat(both()).times(2).emit().count()
==>4
gremlin> g.withComputer().V(6).repeat(both()).times(2).emit().barrier().count()
==>1
==>3

The OLAP issue also appears with other barrier() steps in combination with
repeat/emit. So, aggregate() displays the issue while store() does not:
gremlin> g.withComputer().V(6).emit().repeat(both().aggregate("v")).times(1).cap("v")
==>[v[3]]
==>[v[3]] 
gremlin> g.withComputer().V(6).emit().repeat(both().store("v")).times(1).cap("v")
==>[v[3]]

> Something's broke in OLAP
> -------------------------
>
>                 Key: TINKERPOP-1643
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1643
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: process
>    Affects Versions: 3.3.0, 3.2.5
>            Reporter: Daniel Kuppitz
>            Assignee: stephen mallette
>            Priority: Major
>
> I don't know what it's related to, hence the open title on this ticket.
> *Base Query (all good)*:
> {noformat}
> gremlin> g.V().as("v").emit().repeat(both().as("v").dedup()).select("v")
> ==>v[1]
> ==>v[2]
> ==>v[3]
> ==>v[4]
> ==>v[5]
> ==>v[6]
> ==>[v[1],v[4]]
> ==>[v[4],v[5]]
> ==>[v[3],v[6]]
> ==>[v[2],v[1]]
> ==>[v[1],v[2]]
> ==>[v[1],v[3]]
> {noformat}
> *Issues*:
> {noformat}
> gremlin> g.V().as("v").emit().repeat(both().as("v").dedup()).select("v").count()
> ==>6
> ==>6
> {noformat}
> {noformat}
> gremlin> g.V().as("v").emit().repeat(both().as("v").dedup()).select("v").order().by(count(local))
> ==>v[1]
> ==>v[1]
> ==>v[2]
> ==>v[2]
> ==>v[3]
> ==>v[3]
> ==>v[4]
> ==>v[4]
> ==>v[5]
> ==>v[5]
> ==>v[6]
> ==>v[6]
> ==>[v[1],v[4]]
> ==>[v[4],v[5]]
> ==>[v[3],v[6]]
> ==>[v[2],v[1]]
> ==>[v[1],v[2]]
> ==>[v[1],v[3]]
> {noformat}
> I'm going to create a dev branch and test cases tomorrow.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message