-
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
sem/builtins: vectorized engine no longer catches crdb_internal.force_panic #63178
Conversation
…_panic Previously, when executing `crdb_internal.force_panic` builtin, if it was executed via the vectorized engine, we would catch the panic and convert it into an internal error instead. This is undesirable and is now fixed. Release note: None
This behavior was only introduced last week: #62889. |
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.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @jordanlewis and @michae2)
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.
Reviewed 4 of 5 files at r1.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @jordanlewis and @yuzefovich)
pkg/sql/sem/builtins/builtins.go, line 4085 at r1 (raw file):
// This code is unreachable. panic(msg)
Why leave it in, then? For some sort of static analysis?
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.
TFTRs!
bors r+
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @jordanlewis and @michae2)
pkg/sql/sem/builtins/builtins.go, line 4085 at r1 (raw file):
Previously, michae2 (Michael Erickson) wrote…
// This code is unreachable. panic(msg)
Why leave it in, then? For some sort of static analysis?
The compiler complains - it cannot prove to itself that this line is unreachable, so it expects either Golang's panic
or return ...
; I chose the former. This fact is one of the annoyances of using colexecerror
methods.
Build succeeded: |
Previously, when executing
crdb_internal.force_panic
builtin, if itwas executed via the vectorized engine, we would catch the panic and
convert it into an internal error instead. This is undesirable and is
now fixed.
Release note: None