-
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: mark type strings as safe from redacting #90760
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
O-sentry
Originated from an in-the-wild panic report.
T-sql-queries
SQL Queries Team
Comments
cockroach-teamcity
added
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
O-sentry
Originated from an in-the-wild panic report.
labels
Oct 27, 2022
We can't find a cast needed for arguments of a window function inside of a subquery. The statement prefix is |
yuzefovich
changed the title
sentry: error.go:89: unexpected error from the vectorized engine: unhandled cast × -> ×
(1) assertion failure
Wraps: (2) attached stack trace
-- stack trace:
| github.com/cockroachdb/cockroach/pkg/sql/col...
colexec: v22.1.9: unhandled cast for window function arguments
Oct 28, 2022
This was referenced Oct 29, 2022
Maybe the action item is to mark types strings as safe from redacting. |
DrewKimball
added a commit
to DrewKimball/cockroach
that referenced
this issue
Nov 18, 2022
This patch adds a `SafeSQLString` method to `types.T` that returns a `redact.SafeString`. It is used by the "unhandled cast" error message. This will make debugging sentry issues easier. Fixes cockroachdb#90760 Release note: None
mgartner
changed the title
colexec: v22.1.9: unhandled cast for window function arguments
sql: mark type strings as safe from redacting
Nov 29, 2022
DrewKimball
added a commit
to DrewKimball/cockroach
that referenced
this issue
Dec 6, 2022
This patch adds a `SQLStringForError` method to `types.T` that returns a `redact.RedactableString`. It is used by the "unhandled cast" error message to prevent safe type information from being removed from the error message. This will make debugging sentry issues easier. Fixes cockroachdb#90760 Release note: None
DrewKimball
added a commit
to DrewKimball/cockroach
that referenced
this issue
Mar 6, 2023
This patch adds a `SQLStringForError` method to `types.T` that returns a `redact.RedactableString`. It is used by the "unhandled cast" error message to prevent safe type information from being removed from the error message. This will make debugging sentry issues easier. Fixes cockroachdb#90760 Release note: None
DrewKimball
added a commit
to DrewKimball/cockroach
that referenced
this issue
Mar 14, 2023
This patch adds a `SQLStringForError` method to `types.T` that returns a `redact.RedactableString`. It is used by the "unhandled cast" error message to prevent safe type information from being removed from the error message. This will make debugging sentry issues easier. Fixes cockroachdb#90760 Release note: None
craig bot
pushed a commit
that referenced
this issue
Mar 17, 2023
91892: colexec: use redact.RedactableString for types in cast error message r=DrewKimball a=DrewKimball This patch adds a `SQLStringForError` method to `types.T` that returns a `redact.RedactableString`. It is used by the "unhandled cast" error message to prevent safe type information from being removed from the error message. This will make debugging sentry issues easier. Fixes #90760 Epic: [CRDB-20535](https://cockroachlabs.atlassian.net/browse/CRDB-20535) Release note: None Co-authored-by: Drew Kimball <[email protected]>
DrewKimball
added a commit
to DrewKimball/cockroach
that referenced
this issue
Mar 31, 2023
This patch adds a `SQLStringForError` method to `types.T` that returns a `redact.RedactableString`. It is used by the "unhandled cast" error message to prevent safe type information from being removed from the error message. This will make debugging sentry issues easier. Fixes cockroachdb#90760 Release note: None
DrewKimball
added a commit
to DrewKimball/cockroach
that referenced
this issue
Apr 3, 2023
This patch adds a `SQLStringForError` method to `types.T` that returns a `redact.RedactableString`. It is used by the "unhandled cast" error message to prevent safe type information from being removed from the error message. This will make debugging sentry issues easier. Fixes cockroachdb#90760 Release note: None
DrewKimball
added a commit
to DrewKimball/cockroach
that referenced
this issue
Apr 3, 2023
This patch adds a `SQLStringForError` method to `types.T` that returns a `redact.RedactableString`. It is used by the "unhandled cast" error message to prevent safe type information from being removed from the error message. This will make debugging sentry issues easier. Fixes cockroachdb#90760 Release note: None
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
O-sentry
Originated from an in-the-wild panic report.
T-sql-queries
SQL Queries Team
This issue was autofiled by Sentry. It represents a crash or reported error on a live cluster with telemetry enabled.
Sentry link: https://sentry.io/organizations/cockroach-labs/issues/3700849185/?referrer=webhooks_plugin
Panic message:
Stacktrace (expand for inline code snippets):
cockroach/pkg/sql/colexecerror/error.go
Lines 88 to 90 in e438c2f
GOROOT/src/runtime/panic.go#L1037-L1039 in runtime.gopanic
cockroach/pkg/sql/colexecerror/error.go
Lines 192 to 194 in e438c2f
cockroach/pkg/sql/colexec/colbuilder/execplan.go
Lines 1240 to 1242 in e438c2f
cockroach/pkg/sql/colflow/vectorized_flow.go
Lines 1182 to 1184 in e438c2f
cockroach/pkg/sql/colexecerror/error.go
Lines 91 to 93 in e438c2f
cockroach/pkg/sql/colflow/vectorized_flow.go
Lines 1121 to 1123 in e438c2f
cockroach/pkg/sql/colflow/vectorized_flow.go
Lines 274 to 276 in e438c2f
cockroach/pkg/sql/distsql/server.go
Lines 410 to 412 in e438c2f
cockroach/pkg/sql/distsql/server.go
Lines 583 to 585 in e438c2f
cockroach/pkg/sql/distsql_running.go
Lines 372 to 374 in e438c2f
cockroach/pkg/sql/distsql_running.go
Lines 554 to 556 in e438c2f
cockroach/pkg/sql/distsql_running.go
Lines 1312 to 1314 in e438c2f
cockroach/pkg/sql/distsql_running.go
Lines 1212 to 1214 in e438c2f
cockroach/pkg/sql/conn_executor_exec.go
Lines 1496 to 1498 in e438c2f
cockroach/pkg/sql/conn_executor_exec.go
Lines 1162 to 1164 in e438c2f
cockroach/pkg/sql/conn_executor_exec.go
Lines 698 to 700 in e438c2f
cockroach/pkg/sql/conn_executor_exec.go
Lines 143 to 145 in e438c2f
cockroach/pkg/sql/conn_executor.go
Lines 1890 to 1892 in e438c2f
cockroach/pkg/sql/conn_executor.go
Lines 1894 to 1896 in e438c2f
cockroach/pkg/sql/conn_executor.go
Lines 1816 to 1818 in e438c2f
cockroach/pkg/sql/conn_executor.go
Lines 762 to 764 in e438c2f
cockroach/pkg/sql/pgwire/conn.go
Lines 727 to 729 in e438c2f
GOROOT/src/runtime/asm_amd64.s#L1580-L1582 in runtime.goexit
v22.1.9
Jira issue: CRDB-20931
The text was updated successfully, but these errors were encountered: