You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the example provided, the cascade process fails to evaluate the restriction for child tables, and keeps using the user-provided restriction as an invalid where_clause.
In testing, I also discovered that cascade will ignore a table named F. This may be escaping some regex check
Reproducibility
Include:
OS: Linux
Python Version: 3.9.16
MySQL Version: 8.0.21
MySQL Deployment Strategy: local-docker
DataJoint Version: master branch, b42b239
Minimum number of steps to reliably reproduce the issue
Complete error stack as a result of evaluating the above steps
Script to Produce
importdatajointasdjschema=dj.schema("temp")
@schemaclassA(dj.Lookup):
definition=""" a_id: int """contents= [(0,), (2,), (4,)]
@schemaclassB(dj.Lookup):
definition=""" -> A """contents= [(0,), (2,), (4,)]
@schemaclassC(dj.Lookup):
definition=""" c_id: int --- -> B """contents= [(12, 0), (14, 2), (16, 4)]
@schemaclassD(dj.Lookup): # Cascade does not find this table if named `F`definition=""" -> C """contents= [(12,), (14,), (16,)]
if__name__=="__main__":
(A& {"a_id": 0}).delete()
Bug Report
Description
In the example provided, the cascade process fails to evaluate the restriction for child tables, and keeps using the user-provided restriction as an invalid
where_clause
.In testing, I also discovered that
cascade
will ignore a table namedF
. This may be escaping some regex checkReproducibility
Include:
b42b239
Script to Produce
Error stack
Expected Behavior
I expect the delete to include relevant entries in table
D
Screenshots
n/a
Additional Research and Context
The text was updated successfully, but these errors were encountered: