Skip to content

Error on handling 'in' and 'out' properties on edges. #15

@Dollyn

Description

@Dollyn

When creating edge class, if you specify the 'from vertex' or 'to vertex' class type:
image
Orientdb will create a 'in' property and a 'out' property with type 'LINK':
image

OrientDBGraphEdgeWrapper can't handle these properties properly:

Exception in thread "main" scala.MatchError: LINK (of class com.orientechnologies.orient.core.metadata.schema.OType)
at org.apache.spark.orientdb.graphs.OrientDBGraphWrapper.getCatalystType(OrientDBGraphWrapper.scala:39)
at org.apache.spark.orientdb.graphs.OrientDBGraphEdgeWrapper.resolveTable(OrientDBGraphWrapper.scala:433)
at org.apache.spark.orientdb.graphs.OrientDBEdgeRelation$$anonfun$schema$2.apply(OrientDBRelation.scala:163)
at org.apache.spark.orientdb.graphs.OrientDBEdgeRelation$$anonfun$schema$2.apply(OrientDBRelation.scala:158)
at scala.Option.getOrElse(Option.scala:121)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions