v22.1.8: sql/stats: expected a tree.CastExpr, but found *tree.CollateExpr during injectTableStats
#92169
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/3750246335/?referrer=webhooks_plugin
Panic message:
Stacktrace (expand for inline code snippets):
cockroach/pkg/sql/parser/parse.go
Lines 387 to 389 in bdcab67
https://github.com/cockroachdb/cockroach/blob/bdcab67f778617515597f1012f37f14f622b15a0/pkg/sql/stats/pkg/sql/stats/json.go#L135-L137 in pkg/sql/stats.(*JSONStatistic).GetHistogram
cockroach/pkg/sql/alter_table.go
Lines 1270 to 1272 in bdcab67
cockroach/pkg/sql/alter_table.go
Lines 714 to 716 in bdcab67
cockroach/pkg/sql/plan.go
Lines 515 to 517 in bdcab67
cockroach/pkg/sql/walk.go
Lines 111 to 113 in bdcab67
cockroach/pkg/sql/walk.go
Lines 296 to 298 in bdcab67
cockroach/pkg/sql/walk.go
Lines 78 to 80 in bdcab67
cockroach/pkg/sql/walk.go
Lines 42 to 44 in bdcab67
cockroach/pkg/sql/plan.go
Lines 518 to 520 in bdcab67
cockroach/pkg/sql/plan_node_to_row_source.go
Lines 145 to 147 in bdcab67
cockroach/pkg/sql/colflow/flow_coordinator.go
Lines 119 to 121 in bdcab67
cockroach/pkg/sql/colexecerror/error.go
Lines 91 to 93 in bdcab67
cockroach/pkg/sql/colflow/flow_coordinator.go
Lines 118 to 120 in bdcab67
cockroach/pkg/sql/execinfra/processorsbase.go
Lines 752 to 754 in bdcab67
cockroach/pkg/sql/flowinfra/flow.go
Lines 468 to 470 in bdcab67
cockroach/pkg/sql/colflow/vectorized_flow.go
Lines 302 to 304 in bdcab67
cockroach/pkg/sql/distsql_running.go
Lines 596 to 598 in bdcab67
cockroach/pkg/sql/distsql_running.go
Lines 1444 to 1446 in bdcab67
cockroach/pkg/sql/conn_executor_exec.go
Lines 1505 to 1507 in bdcab67
cockroach/pkg/sql/conn_executor_exec.go
Lines 1162 to 1164 in bdcab67
cockroach/pkg/sql/conn_executor_exec.go
Lines 698 to 700 in bdcab67
cockroach/pkg/sql/conn_executor_exec.go
Lines 143 to 145 in bdcab67
cockroach/pkg/sql/conn_executor.go
Lines 1890 to 1892 in bdcab67
cockroach/pkg/sql/conn_executor.go
Lines 1894 to 1896 in bdcab67
cockroach/pkg/sql/conn_executor.go
Lines 1816 to 1818 in bdcab67
cockroach/pkg/sql/conn_executor.go
Lines 762 to 764 in bdcab67
cockroach/pkg/sql/pgwire/conn.go
Lines 727 to 729 in bdcab67
src/runtime/asm_amd64.s#L1580-L1582 in runtime.goexit
v22.1.8
Jira issue: CRDB-21613
The text was updated successfully, but these errors were encountered: