-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sql: support correlated subquery in DELETE WHERE clause #31670
Comments
Another via org.hibernate.test.hql.DeleteWithSubqueryTest.testDeleteMemberOf delete
from
Attrvalue
where
id in (
select
attrvalue4_.id
from
Employee employee1_ cross
join
Employeegroup employeegr2_ cross
join
Attrset attrset3_ cross
join
Attrvalue attrvalue4_
where
employeegr2_.id=employee1_.employeegroup_id
and attrset3_.id=employee1_.attrset_id
and (
attrvalue4_.id in (
select
attrvalues5_.attrvalues_id
from
ATTRSET_X_ATTRVALUE attrvalues5_
where
attrset3_.id=attrvalues5_.Attrset_id
)
)
) |
@andy-kimball would this work once mutations are supported in 2.2? Would this need the apply operator @jordanlewis ? |
Yes optimizer knowledge of mutation will be 70% of the work needed here. For the requirement on apply, it will depend on the query I think. Not sure about those quoted above. |
Yes, I'd expect these to work once we added CRUD support to the optimizer. They shouldn't need |
Closed thanks to #33524. |
Thanks to #cockroachdb#33524, cockroachdb#31670 is now closed, so 3 more tests are passing. Release note: None
One thing to note is that this probably won't work with cascading yet.
Probably worth opening a new issue.
…On Mon, Feb 4, 2019, 15:02 Bram Gruneir ***@***.*** wrote:
Closed #31670 <#31670>.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#31670 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABihuT1vamX1AgdT_XehA_mv5NMcdd2kks5vKJHOgaJpZM4Xx-_j>
.
|
Is your feature request related to a problem? Please describe.
Found via the Hibernate test org.hibernate.test.hql.BulkManipulationTest.testDeleteWithSubquery
The text was updated successfully, but these errors were encountered: