Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can’t traverse hierarchy of just created objects untill transaction is commited #9096

Closed
arch7tect opened this issue Dec 26, 2019 · 1 comment
Assignees
Labels
Milestone

Comments

@arch7tect
Copy link

OrientDB Version: OrientDB Server v3.0.26

Java Version: jdk1.8.0_231

OS: windows 10

Expected behavior

batch executes without errors

Actual behavior

exception thrown:
java.lang.IllegalArgumentException: Invalid property value for OResult: [#1982:-3] - com.orientechnologies.orient.core.db.record.ridbag.ORidBag

Steps to reproduce

drop class _Object if exists unsafe;
create class _Object extends V;
create property _Object.name STRING;
drop class _Contains if exists unsafe;
create class _Contains extends E;
begin;
insert into _Object(name) values (‘a’), (‘b’), (‘c’);
create edge _Contains from (select from _Object where name = ‘a’) to (select from _Object where name = ‘b’);
create edge _Contains from (select from _Object where name = ‘b’) to (select from _Object where name = ‘c’);
let top = (select * from (traverse in(’_Contains’) from (select from _Object where name=‘c’)) where in(’_Contains’).size() == 0);
commit;
return $top
@luigidellaquila
Copy link
Member

Hi @arch7tect

I just pushed a fix for this problem, the fix will be released with v 3.0.27

Thanks

Luigi

@luigidellaquila luigidellaquila self-assigned this Dec 27, 2019
@luigidellaquila luigidellaquila added this to the 3.0.27 milestone Dec 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants