tinkerpop/rexster — Issue #193: Map's do not return correctly using Gremlin on a Neo4j backend
Author: yort
Created: 2012-01-10 09:18:05+00:00
State: open

Hiya,

I have found a similar issue in Neo4j (handling of maps), but Rexster's version is slightly different.

If you run a script like ...

m=[:]
g.V.value.groupCount(m).iterate();
m;

m is not returned, and instead you get an error like ...

{"message":"","error":null,"api":{"description":"evaluate an ad-hoc Gremlin script for a graph.","parameters":{"rexster.returnKeys":"an array of element property keys to return (default is to return all element properties)","rexster.showTypes" etc etc etc

If you however use the below script ...

m=[:];
m["1"]="1";
m["2"]="2";
m

You get the correct json response.

The interesting bit is that this error does not occur when using tinkergraph from the default installation but does fail when using a Neo4j graph (have checked the values to see if maybe its the encoding or format but that isnt it)

I am trying to work out why the Neo4j issue (all maps are returned in incorrect format) but it is proving to be a bit far over my head at present (understanding Java and all), so hoping someone can have a look and see whats going on.

Here is the platform information for the system I am using this under at the moment.

Apache Maven 3.0.3 (r1075438; 2011-03-01 06:31:09+1300)
Maven home: W:\application\mvn
Java version: 1.6.0_30, vendor: Sun Microsystems Inc.
Java home: C:\Program Files (x86)\Java\jdk1.6.0_30\jre
Default locale: en_NZ, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"

Any Q's let me know.

Thanks
YorT/Troy