-
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/opt/norm: propagate kv errors from cast folding #87614
Conversation
@mgartner how does this make you feel? |
happy to put a TODO around this to say that we ought to mark the function as leakproof, or not, and propagate errors differently because of it. |
eabbba8
to
efc5104
Compare
efc5104
to
7aaa348
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.
LGTM. I added the same logic to FoldCast
and added TODOs. PTAL.
Thanks for do this, btw! I had started working on this but I didn't love my solutions. I like this the best so far. |
Swallowing KV errors here leads to incorrect results. Writes can be missed and serializability can be silently violated. This comes up in the context of the randomized schema change testing. Release note: None
7aaa348
to
b075b30
Compare
Thanks! |
bors r+ |
Build failed: |
bors r+ |
Build failed (retrying...): |
Build succeeded: |
Encountered an error creating backports. Some common things that can go wrong:
You might need to create your backport manually using the backport tool. error creating merge commit from b075b30 to blathers/backport-release-21.2-87614: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict [] you may need to manually resolve merge conflicts with the backport tool. Backport to branch 21.2.x failed. See errors above. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan. |
Swallowing KV errors here leads to incorrect results. Writes can be missed and serializability can be silently violated. This comes up in the context of the randomized schema change testing.
May deal with #85677
relates to #80764
Release note: None