-
Notifications
You must be signed in to change notification settings - Fork 871
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
*:{!property} No longer working #8757
Comments
Hi @dargolith thank you for reporting. I don't know if it can be considered a regression or if the old behaviour was incorrect. Thanks Luigi |
Thanks @luigidellaquila ! I didn't know it was un-intended to use it that way. If so, how can I make a projection that excludes fields (if I know what I don't want but not what is actually in the record)? Thanks for the quick response! |
Hi @dargolith I thought a bit on this and I came to the conclusion that the correct behaviour is current one.
the name and surname refer to the linked object (the parent), that is expanded. Star
means get all the attributes, the nested projection refers to each of them, not to the current record. There is a way to refer to current record though, that is
This will return a slightly different result than a To return what you expect, probably you need to do the following:
I hope it helps Thanks Luigi |
Hi @luigidellaquila, Couple of quetions:
So in my mind Also a note: drastically changing behavior of the query screws everyone's work up quite bad. In the future please consider that there are large projects using your database. I've spend quite a bit of effort developing a REST driver and moving off of from PhpOrient. And I was using 3.0.13 as my main testbed. Not mentioning a fact that an immense amount of queries was restructured to make things work again. A change from 3.0.13 or 3.0.14 should signify a bug fix and not an user facing functionality change that changes dynamics of queries and renders someone's work completely unusable. |
Hi @andreyvk
just because you can use nested projections only as projections, not as general expressions (so not inside another expression)
That's true, if you want
I understand your point, but if it's true, how can you write a query like this #8724? I agree with you, this was a significant fix and can have a significant impact on existing (my fault, definitely), but it's still a fix, so I cannot just ignore an actual problem... I hope you understand Thanks Luigi |
Hi @luigidellaquila,
Do you mean In any case what's happening now in 3.0.14 is inconsistency between including and excluding attributes in projections. While |
Hi @luigidellaquila ,
That doesnt work:
This should return attribute |
That's a bit strange. While |
Hi @andreyvk Sorry, here's the right query:
The point is that About the nested projections in the Again, I understand your concern and the fact that it someway breaks backward compatibility, but the previous behaviour was a bug, I cannot leave it there... Thanks Luigi |
Hi @luigidellaquila, Thanks for the explanation, it's clear now. I guess as long as query dymamics stay the same from now on, I can continue my development using the latest database, because until now I wasnt sure what to expect. |
With the latest patch (3.0.14) my queries stopped working. I assume those changes are unwanted since the release is only a patch.
OrientDB Version:
3.0.14
Java Version / OS:
The official docker container from orienttechnologies on dockerhub. 3.0.14 (or latest) tag.
Expected behavior
SELECT *:{!@version, !@class, !out_*, !in_*} FROM V
to return:Actual behavior
SELECT *:{!@version, !@class, !out_*, !in_*} FROM V
returns:Steps to reproduce
The text was updated successfully, but these errors were encountered: