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
The dijkstra function does not work as described, for example (SQLscript):
CREATE VERTEX TYPE V;
CREATE EDGE TYPE E;
CREATE PROPERTY E.distance LONG;
LET $src = (INSERT INTO V);
LET $dst = (INSERT INTO V);
CREATE EDGE E FROM $src TO $dst SET distance =1;
CREATE EDGE E FROM $src TO $dst SET distance =10;
LET $src = (SELECTFROM V LIMIT1);
LET $dst = (SELECTFROM V LIMIT1 SKIP 1);
SELECT dijkstra($src, $dst, 'distance') FROM V;
results in the error:
Error on command execution (PostCommandHandler): class com.arcadedb.graph.ImmutableVertex cannot be cast to class java.lang.String (com.arcadedb.graph.ImmutableVertex is in unnamed module of loader 'app'; java.lang.String is in module java.base of loader 'bootstrap')
Similarly, using instead:
LET $src = (SELECTFROM V LIMIT1);
LET $dst = (SELECTFROM V LIMIT1 SKIP 1);
SELECT dijkstra($src.@rid, $dst.@rid, 'distance') FROM V;
results in the error:
Error on command execution (PostCommandHandler): class com.arcadedb.database.RID cannot be cast to class java.lang.String (com.arcadedb.database.RID is in unnamed module of loader 'app'; java.lang.String is in module java.base of loader 'bootstrap')
So it seems the source and destination arguments for the dijkstra function are not parsed correctly.
ArcadeDB Version
25.2.1-SNAPSHOT
The
dijkstra
function does not work as described, for example (SQLscript
):results in the error:
Similarly, using instead:
results in the error:
So it seems the source and destination arguments for the
dijkstra
function are not parsed correctly.This issue was reported by the user
kyurina
on DiscordThe text was updated successfully, but these errors were encountered: