Skip to content

Subqueries using let: $current and $parent not found #8383

@balalakshmin

Description

@balalakshmin

OrientDB Version: 3.0.2

Java Version: 8

OS: Mac OS

Expected behavior

When executing the command:

select $foo from Bar
let
$foo = (select expand(out('foo-bar')) from $parent.current)

Returns Foo vertices.

Actual behavior

Exception:
com.orientechnologies.orient.core.exception.OCommandExecutionException: Class $parent not found DB name=

Sidenote:
In Orientdb 2.2.x the below used to work
select $foo from Bar
let
$foo = (select expand(out('foo-bar')) from $current)

But in v3.0.2 this also throws exception:
com.orientechnologies.orient.core.exception.OCommandExecutionException: Class $current not found DB name=

Metadata

Metadata

Labels

buglegacy not used anymore

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions