-
Notifications
You must be signed in to change notification settings - Fork 872
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
2.1 develop - Incorrect number of edges returned #4641
Comments
Hi Guglielmo,
|
Hi Luigi,
Thanks |
Sorry Luigi, I have a script that I use for development purposes for truncating all classes, that uses the UNSAFE keyword. The keyword has been added because the script was no more working with 2.1. I used this script with older version of OrientDB without any problems (but without the UNSAFE keywor). The script is the following: js var result = db.query('select name from (select expand(classes) from metadata:schema) where name.charAt(0) <> "O"');
for (var i = 0; i < result.length; i++) {
var className = result[i].getRecord().field('name');
db.command('truncate class ' + className + ' UNSAFE');
};
result.length + ' classes truncated'; Would you like me to try again starting from a plain db? Regards Guglielmo |
Hi Guglielmo, I think I can close this issue. If it happened for other reasons and you think it's actually a bug, please reopen Thanks |
I recreted the database from scratch and yes, now it's working as expected. Unsafe is really UNSAFE ;) Thanks (and sorry) for your time Regards |
I'm sorry but the issue still persists. I've recreated the database manually. The message now is different from the past:
This time I've never used UNSAFE. The behaviour is the same as the image posted before. In addition, if I try to run select out('CurrentProfile') from cardCode where code = 8330000 I get an error message stating "java.lang.NullPointerException" Also, if I run select out_CurrentProfile from cardCode where code = 8330000 I get an error message stating "java.lang.NullPointerException: Impossible to add a null identifiable in a ridbag" Can you reopen the issue? I can't Regards Guglielmo |
Hi Guglielmo, Ok, reopening. Can you share the procedure you use to create the db, or a test case to reproduce the problem? |
ok, I'll try to recreate a test case for you, i'll need time. I'll be back as soon as i get a valid test case Regards |
Thanks a lot!! 2015-07-24 13:42 GMT+02:00 Guglielmo Moretti notifications@github.com:
|
Good morning,
I'm using the develop branch of 2.1 compiled two days ago.
As you can see from the last query in the picture
select from CardCode where code = 8330000
The out('CurrentProfile') shows more than one edge.
Actually there is only one (as it should really be as per my code).
In fact, this is shown in the first query of the screenshot.
This is confirmed by the second query. If I try to select the #72:0 RID as listed on the first query, the result is empty.
Due to this, if I try to iterate over the out('CurrentProfile'), the output log shows this:
Hope this helps
Regards
Guglielmo
The text was updated successfully, but these errors were encountered: