[ 
https://issues.apache.org/jira/browse/TINKERPOP-2900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stephen Mallette closed TINKERPOP-2900.
---------------------------------------
    Resolution: Not A Bug

{{ProductiveByStrategy}} forces a {{null}} to be returned when the property 
isn't present. like sql, {{null}} has a natural sort order ahead of a value: 
https://tinkerpop.apache.org/docs/current/dev/provider/#gremlin-semantics-orderability

> Incorreclty sort elements with ProductiveByStrategy
> ---------------------------------------------------
>
>                 Key: TINKERPOP-2900
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2900
>             Project: TinkerPop
>          Issue Type: Bug
>            Reporter: Lei Tang
>            Priority: Major
>
> When I sort vertices with property 'vp1', I expect TinkerGraph returns 
> vertices that have property 'vp1' first. However, when I turn on 
> ProductiveByStrategy, it first returns vertices without property 'vp1'.
>  
> {code:java}
> gremlin> :> g.addV().property('vp1', 11)
> ==>v[0]
> gremlin> :> g.addV().property('vp2', 'hello')
> ==>v[2]
> gremlin> :> g.withStrategies(ProductiveByStrategy).V().order().by('vp1')
> ==>v[2]
> ==>v[0] {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to