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
For traversal queries, for vertex or edge; if RID is provided as a parameter, it is not recognized and exception is generated
try{
db.command("sql", "CREATE VERTEX TYPE TVtx IF NOT EXISTS");
db.command("sql", "CREATE EDGE TYPE TEdg IF NOT EXISTS");
RID newVtx0Id=db.command("sql", "CREATE VERTEX TVtx").next().getIdentity().get();
RID newVtx1Id=db.command("sql", "CREATE VERTEX TVtx").next().getIdentity().get();
Map<String, Object> params=new HashMap<>();
params.put("fromRid", newVtx0Id);
params.put("toRid", newVtx1Id);
RID newEdgRid=db.command("sql", "CREATE EDGE TEdg FROM :fromRid TO :toRid", params).next().getIdentity().get();
params.clear();
params.put("rid", newVtx0Id);
String traverseQuery="SELECT FROM (TRAVERSE out('TEdg') FROM :rid MAXDEPTH 1)";
//This also does not recognize RID parameter
//String traverseQuery="SELECT FROM (TRAVERSE inV() FROM :rid MAXDEPTH 1)";
db.command("sql", traverseQuery, params);
}catch(Exception e){e.printStackTrace();}
Exception
com.arcadedb.exception.SchemaException: Type with name '#77:0' was not found
at com.arcadedb.remote.RemoteHttpComponent.manageException(RemoteHttpComponent.java:433)
at com.arcadedb.remote.RemoteHttpComponent.httpCommand(RemoteHttpComponent.java:170)
at com.arcadedb.remote.RemoteDatabase.databaseCommand(RemoteDatabase.java:461)
at com.arcadedb.remote.RemoteDatabase.command(RemoteDatabase.java:398)
at com.arcadedb.remote.RemoteDatabase.command(RemoteDatabase.java:383)
Server Trace
The text was updated successfully, but these errors were encountered:
Similar/related to issue 1430
For traversal queries, for vertex or edge; if RID is provided as a parameter, it is not recognized and exception is generated
Exception
Server Trace
The text was updated successfully, but these errors were encountered: