-
-
Couldn't load subscription status.
- Fork 874
Closed
Description
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.
RamAnvesh
Metadata
Metadata
Assignees
Labels
buglegacy not used anymorelegacy not used anymore