ArcadeDB Server v26.2.1 (build ced6531188602179fef91d7f831373e7ff47284c/1771258648678/UNKNOWN)
Running on Linux 6.17.0-14-generic - OpenJDK 64-Bit Server VM 25.0.2
The CREATE EDGE statement does not allow empty arrays as literal destination, while a variable with an empty array as value works.
Given:
CREATE VERTEX TYPE V;
CREATE EDGE TYPE E;
INSERT INTO V;
this errors:
CREATE EDGE E FROM (SELECT FROM V LIMIT 1) TO []
while this just creates no edge:
LET $x = [];
CREATE EDGE E FROM (SELECT FROM V LIMIT 1) TO $x;
BTW: As source neither is allowed.