-
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: parsing of negative constraints referencing attributes is broken #39801
Comments
This makes sense, we shouldn't check that the current node has the constraint on a negative constraint input. I don't think this is a result of changes I made, but I'll fix this since I've been in that part of the code recently. |
Does this not seem like intended behavior? This checks all the nodes in the cluster to see if at least 1 has this attribute. There should be an error if no nodes have the attribute you are forbidding, because that most likely means you mistyped an attribute that the nodes actually have. |
I don't understand what's going on, but something's up.
|
Ok, I found the cause of this -- the logic for validating these configs had a subtle flaw, and the tests for this behavior were passing due to luck i think. I'll put a fix out for this soon. |
Fixes cockroachdb#39801. Release note: None
39824: sql: Fix bug with negative parsing validation for zone constraints r=solongordon a=rohany Fixes #39801. This PR fixes the parsing issues brought up in #39801, and refactors the test cases for zone validation to specifically test this behavior. Previously this behavior was tested, but falsely passed due to a logic error. Release note: None Co-authored-by: Rohan Yadav <rohany@alumni.cmu.edu>
Yes computer, I've entered it correctly.
The text was updated successfully, but these errors were encountered: