You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Java remote client: a record returned as a projection column (Cypher RETURN a, r, b; SQL @this, first(out())) arrives as a List of RIDs and loses every property #12184
bugjavaPull requests that update java codenetworkBinary network protocol and remote clientopencypherseverity:majorA feature is broken or returns wrong results, with no practical workaroundsql
With the Java HTTP client (RemoteDatabase), a record returned as a column of a projection row (not as the whole row) comes back as a List of RIDs instead of a record. Every property of the record is lost, and an edge becomes a three element list [edge rid, in rid, out rid].
This hits ordinary Cypher such as MATCH (a)-[r]->(b) RETURN a, r, b and SQL such as SELECT @this AS me, name ... or SELECT first(out('Knows')) AS friend .... The embedded API returns the records with all their properties. A row that is itself a record (MATCH (a) RETURN a) is not affected.
Reproduction
RemoteDatabasedb = newRemoteDatabase("localhost", 2480, "f1", "root", "password");
db.command("sql", "create vertex type Person");
db.command("sql", "create edge type Knows");
db.command("sql", "create vertex Person set name = 'alice', age = 30");
db.command("sql", "create vertex Person set name = 'bob', age = 40");
db.command("sql", "create edge Knows from (select from Person where name = 'alice') to (select from Person where name = 'bob') set since = 2020");
try (ResultSetrs = db.query("cypher", "MATCH (a:Person)-[r:Knows]->(b:Person) RETURN a, r, b")) {
Resultrow = rs.next();
System.out.println(row.getProperty("a")); // [#1:0]System.out.println(row.getProperty("r")); // [#4:0, #1:1, #1:0]
}
Measured (26.12.1-SNAPSHOT build 1541bf7, client and server from the same build)
query
column
remote getProperty()
embedded getProperty()
MATCH (a:Person)-[r:Knows]->(b:Person) RETURN a, r, b
a
ArrayList[#1:0]
vertex alice with name, age
same
r
ArrayList[#4:0, #1:1, #1:0]
edge with since
same
b
ArrayList[#1:1]
vertex bob
MATCH (a:Person {name:'alice'}) RETURN a, a.name AS n
a
ArrayList[#1:0]
vertex alice
SELECT @this AS me, name FROM Person WHERE name = 'alice'
me
ArrayList[#1:0]
vertex alice
SELECT first(out('Knows')) AS friend FROM Person WHERE name = 'alice'
friend
ArrayList[#1:1]
vertex bob
MATCH (a:Person {name:'alice'}) RETURN a
whole row
record with all properties (correct)
record
Same result with the 26.10.1 server and the 26.10.1 client jars.
Where it happens
The server sends the column as the full record plus a type hint, for example:
11 is Type.LINK. RemoteDatabase.json2Result() applies the hint with convertWithHint(), which calls Type.convertOrKeep(null, value, Identifiable.class). Type.convert treats the Map as a multi value, iterates its values, keeps the strings that parse as RIDs (@rid, @in, @out) and drops every other value. So the record map, which the client could rebuild with json2Record() as it does for whole-row records, is turned into a list of RIDs.
[INFERENCE] A column value that carries @cat should go through json2Record() (as a nested record does for rows) before any hint conversion.
With the Java HTTP client (RemoteDatabase), a record returned as one column of a row, such as a, r and b in MATCH (a)-[r]->(b) RETURN a, r, b, or SQL @this and first(out(...)), came back as a list of RIDs and lost all its properties. The server was sending the full record; the client then threw it away while applying the column's type.
Now such a column comes back as a Document, Vertex or Edge with all its properties, the same as with the embedded API. Records inside a list, map or path column (for example collect(a)) are returned as records too. The fix is in the client only, so it works with any server version.
If your code worked around this by reading the column as a list of RIDs, read it as a record instead and call getIdentity() when you only need the RID.
❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.
bugjavaPull requests that update java codenetworkBinary network protocol and remote clientopencypherseverity:majorA feature is broken or returns wrong results, with no practical workaroundsql
Activity
fix(ArcadeData#12184): a row with an unknown @cat is still converted …
fix(#12196): gRPC sends a RETURN n row as the element and rebuilds re…
fix(ArcadeData#12184): rebuild every record a projection column holds…
fix(ArcadeData#12184): remote client rebuilds a record returned as a …
lvca commentedon Nov 20, 2026
Fixed by #12215, ships in 26.12.1.
With the Java HTTP client (
RemoteDatabase), a record returned as one column of a row, such asa,randbinMATCH (a)-[r]->(b) RETURN a, r, b, or SQL@thisandfirst(out(...)), came back as a list of RIDs and lost all its properties. The server was sending the full record; the client then threw it away while applying the column's type.Now such a column comes back as a
Document,VertexorEdgewith all its properties, the same as with the embedded API. Records inside a list, map or path column (for examplecollect(a)) are returned as records too. The fix is in the client only, so it works with any server version.If your code worked around this by reading the column as a list of RIDs, read it as a record instead and call
getIdentity()when you only need the RID.❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.