-
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
UPDATE #9:1 SET foo.bar = (INSERT INTO...) Syntax Not Working #8583
Comments
It appears that the same issue occurs with the
|
Hi @big213 I just pushed a fix to 3.0.x branch, it will be released with v 3.0.9 Thanks Luigi |
@luigidellaquila Thank you for the quick attention to this issue. However, I just hope that the fix will also address the following query, could you please check?
|
Hi @big213 Subqueries in that context are not supported by the SQL executor (for now at least) Thanks Luigi |
@luigidellaquila thanks for letting me know. I believe it was working as recently as OrientDB 3.0.7, so it is a bit unfortunate that it is no longer supported. How about this query, will it be supported in 3.0.9?
or...
Basically, I'm looking for a way to create and populate a linkmap in the same query. |
Hi @big213 I'd say it's quite unlikely, it never worked in v 3.0.x. Thanks Luigi |
It looks like OrientDB 3.0.9 has been released, and I tried to test if these queries were functional:
This will work with no defined fields, but if field
|
Hi @big213 I just pushed another fix, now it should be OK also in that case Thanks Luigi |
OrientDB Version: 3.0.8
Java Version: 1.8.0_141
OS: Windows 7
Expected behavior
UPDATE ... SET foo.bar = (INSERT INTO...)
successfully updates the linkmap with the inserted record (it worked fine in OrientDB 2.2x)Actual behavior
Fails, returns
java.lang.ClassCastException: java.util.ArrayList cannot be cast to com.orientechnologies.orient.core.db.record.OIdentifiable
Steps to reproduce
CREATE VERTEX V SET foo = {}
UPDATE #9:1 SET foo.bar = (INSERT INTO V SET val = 1)
What does work is if I do:
CREATE VERTEX V SET id = 1, foo = {}
//#9:1
CREATE VERTEX V SET id = 2
//#9:2
UPDATE #9:1 SET foo.bar = #9:2
OKThe text was updated successfully, but these errors were encountered: