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
Can't create exclusive constraint on tuple properties #3559
Comments
Ok, through trial and error I've nailed down the bug to be triggered by this schema change: module default {
scalar type Recurr extending enum<Daily, Weekly, Monthly, HalfYearly, Yearly>;
scalar type Label extending str;
type Grp {
+ required property meta -> tuple<label: Label, recurr: Recurr> {
+ constraint exclusive;
+ };
}
} causing this final migration:
|
Just in case it ever might be useful to know: the crashing line is the bottommost of the stack trace (line 128 in schemamech.py). Basically every edgedb compiler bug will have its topmost frame be in the worker. |
I got this crash when applying a migration from a schema change I just made. I'm not sure I typed invalid EdgeQL code somehow, or if the code simply triggered a bug code path in the CLI tool.
Related issues:
edb migration create
causes a crash #3521. This one was fixed some days ago, but my bug is still crashing on the same line of code (line 309, inworker.py
).Steps to Reproduce:
InternalServerError: 'ColumnRef' object has no attribute 'args'
.Full error
This is the migration applied:
Full schema (which triggered the migration)
The text was updated successfully, but these errors were encountered: