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
ArcadeDB Server v24.11.1 (build b466f487e42fbb39fd20965004ce88682335eaba/1730841732933/main)
OS and JDK Version:
Running on Linux 6.2.0-26-generic - OpenJDK 64-Bit Server VM 17.0.12
Expected behavior
Using the $parent.$current variables in subqueries should work.
Actual behavior
Both separately or in combination seem to be ignored? No results are returned.
Using $parent.$current as FROM target gives:
Error on command execution (PostCommandHandler): class com.arcadedb.query.sql.executor.ResultInternal cannot be cast to class java.util.Collection (com.arcadedb.query.sql.executor.ResultInternal is in unnamed module of loader 'app'; java.util.Collection is in module java.base of loader 'bootstrap')
Using $parent.$current.@rid as FROM target gives no result, ie []:
Steps to reproduce
Setup:
CREATE DOCUMENT TYPE doc;
INSERT INTO doc SET a =0;
Test:
SELECT a FROM#1:0; -- {"a":0}SELECT @rid, (SELECT a FROM#1:0; -- works: [{"a":0}]SELECT @rid, (SELECT a FROM $parent.$current); -- error, see aboveSELECT @rid, (SELECT a FROM $parent.$current.@rid); -- empty result
The text was updated successfully, but these errors were encountered:
gramian
changed the title
SQL: "$current" variable are not working correctly in subqueries
SQL: "$current" variable not working correctly in subqueries
Nov 12, 2024
ArcadeDB Version:
ArcadeDB Server v24.11.1 (build b466f487e42fbb39fd20965004ce88682335eaba/1730841732933/main)
OS and JDK Version:
Running on Linux 6.2.0-26-generic - OpenJDK 64-Bit Server VM 17.0.12
Expected behavior
Using the
$parent.$current
variables in subqueries should work.Actual behavior
Both separately or in combination seem to be ignored? No results are returned.
Using
$parent.$current
asFROM
target gives:Using
$parent.$current.@rid
asFROM
target gives no result, ie[]
:Steps to reproduce
Setup:
Test:
Note:
This issue #883 may be related
The text was updated successfully, but these errors were encountered: