You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/03/04 17:29:00 UTC

[jira] [Commented] (TINKERPOP-2172) PartitionStrategy doesn't apply to AddEdgeStartStep

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

ASF GitHub Bot commented on TINKERPOP-2172:
-------------------------------------------

VladimirBogomolov commented on pull request #1078: TINKERPOP-2172 Fix PartitionStrategy to apply to AddEdgeStartStep
URL: https://github.com/apache/tinkerpop/pull/1078
 
 
   Fix PartitionStrategy to apply to traversal started with addE step.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> PartitionStrategy doesn't apply to AddEdgeStartStep
> ---------------------------------------------------
>
>                 Key: TINKERPOP-2172
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2172
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: process
>    Affects Versions: 3.4.1
>            Reporter: Vladimir
>            Priority: Major
>
> PartitionStrategy doesn't apply to traversal started with addE step.
> For instance:
> PartitionStrategy partitionStrategy = PartitionStrategy.build()
>  .partitionKey({color:#660e7a}partition{color}).writePartition({color:#008000}"A"{color}).readPartitions({color:#008000}"A"{color}).create();
>  GraphTraversalSource source = {color:#660e7a}g{color}.withStrategies(partitionStrategy);
>  Vertex v1 = source.addV().property({color:#008000}"any"{color}, {color:#008000}"thing"{color}).next();
>  Vertex v2 = source.addV().property({color:#008000}"some"{color}, {color:#008000}"thing"{color}).next();
>  Edge e1 = source.withSideEffect({color:#008000}"v2"{color}, v2).V(v1.id()).addE({color:#008000}"connectsTo"{color}).from({color:#008000}"v2"{color}).property({color:#008000}"every"{color}, {color:#008000}"thing"{color}).next();
>  Edge e2 = source.addE({color:#008000}"relatesTo"{color}).from(v2).to(v1).property({color:#008000}"every"{color}, {color:#008000}"thing"{color}).next();
> If you check e1 you will see partition property. But edge e2 wont have any partition property.



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