mgmt.makePropertyKey('vec4').dataType(float[]).cardinality(Cardinality.SINGLE).make()
...
g.addV().property('vec4', [1, 2, 3, 4] as float[]).next()gremlin_python.driver.protocol.GremlinServerError: 500: Value [[1, 2, 3, 4]] is not an instance of the expected data type for property key [vec5] and cannot be converted. Expected: class [F, found: class java.util.ArrayList--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/50063125-8044-4376-ae4f-05cb3abaf52a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/c0d0e6ce-7f1f-4ddd-8374-577cee39637d%40googlegroups.com.
Maybe there's an easier way, Kuppitz?
gremlin> g = TinkerGraph.open().traversal()==>graphtraversalsource[tinkergraph[vertices:0 edges:0], standard]
gremlin> g.addV().property('list',[1,2,3])==>v[0]
gremlin> g.V().property('list', sack(assign).by('list').sack(addAll).by(constant([4])).sack())
==>v[0]gremlin> g.V().valueMap()==>[list:[[1,2,3,4]]]
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CAA-H439U5bNOxxqsRx_tm_M9te0UOgFrzQ9zE3wooAy0meP4ig%40mail.gmail.com.
gremlin> g = TinkerGraph.open().traversal()==>graphtraversalsource[tinkergraph[vertices:0 edges:0], standard]
gremlin> g.addV().property('map', [1:'1'])==>v[0]gremlin> g.V().properties('map')==>vp[map->{1=1}]gremlin> g.V().property('map', sack(assign).by('map').sack(addAll).by(constant([2:'2'])).sack())==>v[0]gremlin> g.V().properties('map')==>vp[map->{1=1, 2=2}]
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CA%2Bf9seVdm23%3DaUHkKBGHnTzyYxf4LugXDxXjWfN%3Dh0f9uWMjJQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CA%2Bf9seVdm23%3DaUHkKBGHnTzyYxf4LugXDxXjWfN%3Dh0f9uWMjJQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CAA-H43-O%3D3TJu33zO-pvRwMSp-yhE9jfmrhunMvh59wZwv1GsA%40mail.gmail.com.
gremlin> g.V().property('list', union(values('list').unfold(), constant(4)).fold()).profile()==>Traversal MetricsStep Count Traversers Time (ms) % Dur=============================================================================================================TinkerGraphStep(vertex,[]) 1 1 0.051 1.02AddPropertyStep({value=[[UnionStep([[Properties... 1 1 5.013 98.98UnionStep([[PropertiesStep([list],value), Pro... 4 4 2.159PropertiesStep([list],value) 1 1 0.022UnfoldStep 3 3 0.088NoOpBarrierStep(2500) 3 3 0.098EndStep 3 3 0.077ConstantStep(4) 1 1 0.008EndStep 1 1 0.036FoldStep 1 1 0.388>TOTAL - - 5.064 -
gremlin> g.V().property('list', sack(assign).by('list').sack(addAll).by(constant([4])).sack()).profile()==>Traversal MetricsStep Count Traversers Time (ms) % Dur=============================================================================================================TinkerGraphStep(vertex,[]) 1 1 0.053 14.00AddPropertyStep({value=[[SackValueStep(assign,v... 1 1 0.325 86.00SackValueStep(assign,value(list)) 1 1 0.020SackValueStep(addAll,[ConstantStep([4]), Prof... 1 1 0.063ConstantStep([4]) 1 1 0.008SackStep 1 1 0.073>TOTAL - - 0.379 -