-
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: v20.2.0-alpha.2: could not parse value as requested type - unknown type #52134
Comments
cc @rohany maybe you would know something |
hmm, I'm a bit baffled as to how |
I don't think it panicked - I think it is an assertion failure that got reported, and the user saw an internal error. |
The error is coming from
So we are trying to parse as an array, but we don't support the element type of that array (there are a few families that aren't handled by that function: Unknwon, ColaltedString). But we should only be tolerating the specific array types in
|
The parse-constant-as-type code was allowing a desired type of `Array[Any]`, and we can't parse elements as `Any`. This resulted in an internal error, rather than a normal query error. Fixes cockroachdb#52134. Release note (bug fix): Fixed an internal error involving string literals used as arrays.
52416: sql: fix internal error when trying to parse strings as arrays r=RaduBerinde a=RaduBerinde The parse-constant-as-type code was allowing a desired type of `Array[Any]`, and we can't parse elements as `Any`. This resulted in an internal error, rather than a normal query error. Fixes #52134. Release note (bug fix): Fixed an internal error involving string literals used as arrays. Co-authored-by: Radu Berinde <[email protected]>
The parse-constant-as-type code was allowing a desired type of `Array[Any]`, and we can't parse elements as `Any`. This resulted in an internal error, rather than a normal query error. Fixes cockroachdb#52134. Release note (bug fix): Fixed an internal error involving string literals used as arrays.
The parse-constant-as-type code was allowing a desired type of `Array[Any]`, and we can't parse elements as `Any`. This resulted in an internal error, rather than a normal query error. Fixes cockroachdb#52134. Release note (bug fix): Fixed an internal error involving string literals used as arrays.
The parse-constant-as-type code was allowing a desired type of `Array[Any]`, and we can't parse elements as `Any`. This resulted in an internal error, rather than a normal query error. Fixes cockroachdb#52134. Release note (bug fix): Fixed an internal error involving string literals used as arrays.
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/1815307939/?referrer=webhooks_plugin
Panic message:
Stacktrace (expand for inline code snippets):
cockroach/pkg/sql/sem/tree/datum.go
Lines 266 to 268 in d311992
cockroach/pkg/sql/sem/tree/parse_array.go
Lines 160 to 162 in d311992
cockroach/pkg/sql/sem/tree/parse_string.go
Lines 28 to 30 in d311992
cockroach/pkg/sql/sem/tree/constant.go
Lines 570 to 572 in d311992
cockroach/pkg/sql/sem/tree/constant.go
Lines 72 to 74 in d311992
cockroach/pkg/sql/sem/tree/type_check.go
Lines 1369 to 1371 in d311992
cockroach/pkg/sql/sem/tree/type_check.go
Lines 1203 to 1205 in d311992
cockroach/pkg/sql/sem/tree/type_check.go
Lines 517 to 519 in d311992
cockroach/pkg/sql/sem/tree/type_check.go
Lines 252 to 254 in d311992
cockroach/pkg/sql/opt/optbuilder/scope.go
Lines 426 to 428 in d311992
cockroach/pkg/sql/opt/optbuilder/project.go
Lines 149 to 151 in d311992
cockroach/pkg/sql/opt/optbuilder/project.go
Lines 83 to 85 in d311992
cockroach/pkg/sql/opt/optbuilder/select.go
Lines 1044 to 1046 in d311992
cockroach/pkg/sql/opt/optbuilder/select.go
Lines 981 to 983 in d311992
cockroach/pkg/sql/opt/optbuilder/select.go
Lines 954 to 956 in d311992
cockroach/pkg/sql/opt/optbuilder/with.go
Lines 28 to 30 in d311992
cockroach/pkg/sql/opt/optbuilder/select.go
Lines 953 to 955 in d311992
cockroach/pkg/sql/opt/optbuilder/builder.go
Lines 247 to 249 in d311992
cockroach/pkg/sql/opt/optbuilder/builder.go
Lines 211 to 213 in d311992
cockroach/pkg/sql/opt/optbuilder/builder.go
Lines 182 to 184 in d311992
cockroach/pkg/sql/plan_opt.go
Lines 349 to 351 in d311992
cockroach/pkg/sql/plan_opt.go
Lines 119 to 121 in d311992
cockroach/pkg/sql/conn_executor_prepare.go
Lines 237 to 239 in d311992
cockroach/pkg/sql/conn_executor_prepare.go
Lines 179 to 181 in d311992
cockroach/pkg/kv/db.go
Lines 710 to 712 in d311992
cockroach/pkg/kv/txn.go
Lines 802 to 804 in d311992
cockroach/pkg/kv/db.go
Lines 709 to 711 in d311992
cockroach/pkg/sql/conn_executor_prepare.go
Lines 191 to 193 in d311992
cockroach/pkg/sql/conn_executor_prepare.go
Lines 105 to 107 in d311992
cockroach/pkg/sql/conn_executor_prepare.go
Lines 51 to 53 in d311992
cockroach/pkg/sql/conn_executor.go
Lines 1436 to 1438 in d311992
cockroach/pkg/sql/conn_executor.go
Lines 1295 to 1297 in d311992
v20.2.0-alpha.2
The text was updated successfully, but these errors were encountered: