Skip to content

Support arrays in GraphSON #1295

@FlorianHockmann

Description

@FlorianHockmann

JanusGraph supports arrays of primitive types for property types:

mgmt.makePropertyKey('vec').dataType(float[]).cardinality(Cardinality.SINGLE).make()

Unfortunately, this feature cannot be used with GraphSON right now as we don't have serialization support for arrays. Instead, the array is serialized as a list by the driver which leads to an error on the server side:

Expected: class [F, found: class java.util.ArrayList

(More information with a concrete example on gremlin-users.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions