Skip to content

$parent.$current behaviour changes with indexed queries #8412

@balalakshmin

Description

@balalakshmin

OrientDB Version: 3.0.4

Java Version: 1.8

OS: Mac OS

Expected behavior

select id, $max, $maxRecord from ABC
let
$max = (select max($parent.$current.out('A').value) as maxVal),
$maxRecord = (select $parent.$current.out('A')[value = $parent.$current.$max.maxVal])
where id in [...]

This works as long as id in ABC is not indexed.

Actual behavior

After adding a unique/non-unique index on id, $parent.$current result changes to {key: , rid: } format. And the above query returns null for $max and $maxRecord.

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