tinkerpop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stephen mallette (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TINKERPOP-2278) Neo4j-gremlin prepends properties
Date Wed, 07 Aug 2019 10:33:00 GMT

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

stephen mallette commented on TINKERPOP-2278:
---------------------------------------------

Neo4j supports arrays of primitives so you can just use a {{Float[]}}:

{code}
gremlin> floatz = [1.0f,1.2f,1.3f] as Float[]
==>1.0
==>1.2
==>1.3
gremlin> g.addV('person').property('name','hannes').property('numbers',floatz).iterate()
gremlin> g.V().has('person','name','hannes').values('numbers')
==>[1.0, 1.2, 1.3]
{code}

If TINKERPOP-21 ever gets completed updates to that sort of property might get easier.

> Neo4j-gremlin prepends properties
> ---------------------------------
>
>                 Key: TINKERPOP-2278
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2278
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: neo4j
>    Affects Versions: 3.4.2
>         Environment: Tinkerpop 3.4.2
> Neo4j 3.5.8
>            Reporter: Hannes Enzesberger
>            Priority: Major
>
> Hi,
> when running the [multi-property|http://tinkerpop.apache.org/docs/3.4.2/reference/#_multi_meta_properties]
sample in Neo4j, the properties are getting prepended instead of appended like shown in the
example
> {code:java}
> gremlin> g.addV().property('name','michael').property('name','michael hunger').property('name','mhunger')
> ==>v[0]
> gremlin> g.V(0).properties('name')
> ==>vp[name->mhunger]
> ==>vp[name->michael]
> ==>vp[name->michael hunger]
> {code}
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Mime
View raw message