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
CREATE CLASS User extends V
CREATE PROPERTY User.login STRING (MANDATORY TRUE, NOTNULL)
CREATE PROPERTY User.permissions EMBEDDEDSET STRING (MANDATORY TRUE, NOTNULL)
CREATE INDEX User_Login_Perm on User(login, permissions) UNIQUE
// not entirely sure if a few vertices needed to reproduce. If not getting an error, please insert one or 2.
graph.getVertices("User", ["login"], ["admin"])
Result:
! com.orientechnologies.orient.core.index.OIndexException: Impossible add as key of a CompositeIndex a value of type class java.lang.String
! DB name="fragaria"
! at com.orientechnologies.orient.core.index.OCompositeCollate.transform(OCompositeCollate.java:62)
! at com.orientechnologies.orient.core.index.OIndexAbstract.getCollatingValue(OIndexAbstract.java:945)
! at com.orientechnologies.orient.core.index.OIndexOneValue.get(OIndexOneValue.java:47)
! at com.orientechnologies.orient.core.index.OIndexOneValue.get(OIndexOneValue.java:40)
! at com.orientechnologies.orient.core.index.OIndexAbstractDelegate.get(OIndexAbstractDelegate.java:58)
! at com.orientechnologies.orient.core.index.OIndexTxAwareOneValue.get(OIndexTxAwareOneValue.java:262)
! at com.orientechnologies.orient.core.index.OIndexTxAwareOneValue.get(OIndexTxAwareOneValue.java:40)
! at com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.getVertices(OrientBaseGraph.java:907)
The text was updated successfully, but these errors were encountered:
OrientDB Version: 2.2.21
Java Version: 1.8
OS: linux
Scenario:
Result:
The text was updated successfully, but these errors were encountered: