-
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: return droppedView instead of nil #97802
sql: return droppedView instead of nil #97802
Conversation
It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR? 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add some coverage for this?
Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @chengxiong-ruan)
-- commits
line 4 at r1:
nit: drop
Yeah, I was about to ask here. How do you feel like adding a new test file? The |
I think that makes sense for coverage |
11fee10
to
d027c9c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New logictest looks good, thanks for doing this.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @chengxiong-ruan)
In cockroachdb#97631 we refactor the method to drorp index and column cascade dependents. But we didn't return a correct droppedViews, instead, we returned a nil. This wasn't caught by the `event_log` logic test because we skip `local-legacy-schema-changer` test config in v23.1. Luckily,this was caught when backporting to v22.2 because there was a fallback. Epic: None Release note: None
d027c9c
to
75a70c1
Compare
TFTR! |
Build succeeded: |
In #97631 we refactor the method to drorp index and column cascade dependents. But we didn't return a correct droppedViews for event logging, instead, we returned a nil. This wasn't caught by the
event_log
logic test because welocal-legacy-schema-changer
test config. Though this was caught when backporting to v22.2 because there was a fallback.Epic: None
Release note: None