You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Stephen Mallette (Jira)" <ji...@apache.org> on 2020/02/12 21:03:00 UTC

[jira] [Commented] (TINKERPOP-2338) drop() not removing all edge/meta properties

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

Stephen Mallette commented on TINKERPOP-2338:
---------------------------------------------

Tried a few solutions to this one but nothing quite worked right. [~dkuppitz] seemed to agree with me that this issue is only a problem with {{drop()}} in place so after some thought decided to change {{LazyBarrierStrategy}} to not be applied when that step is present. Added some tests to try to make sure there aren't regressions. 

> drop() not removing all edge/meta properties
> --------------------------------------------
>
>                 Key: TINKERPOP-2338
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2338
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: process
>    Affects Versions: 3.4.5
>            Reporter: Stephen Mallette
>            Assignee: Stephen Mallette
>            Priority: Critical
>
> From Gremlin Users:
> https://groups.google.com/d/msg/gremlin-users/wB0a9uP98Zw/zoZrNk8GFwAJ
> {code}
> gremlin> g.E().property("myprop", true).iterate()
> gremlin> g.E().has("myprop").count().next()
> ==>6
> gremlin> g.E().properties("myprop").drop().iterate()
> gremlin> g.E().has("myprop").count().next()
> ==>5
> {code}
> Obviously, all "myprop" should get removed. The issue has to do with property equality from:
> http://tinkerpop.apache.org/docs/3.4.5/upgrade/#_properties_equality
> and {{LazyBarrierStrategy}} which bulks and yields just one property for {{drop()}}:
> {code}
> gremlin> g.withoutStrategies(LazyBarrierStrategy).E().properties("myprop").drop()
> gremlin> g.E().has("myprop").count().next()
> ==>0
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)