colexec: incorrectly setting batch length before restoring the selection vector in CASE operator #67744
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/2520160489/?referrer=webhooks_plugin
Panic message:
Stacktrace (expand for inline code snippets):
cockroach/pkg/sql/colexecbase/colexecerror/error.go
Lines 87 to 89 in 402d4f6
/usr/local/go/src/runtime/panic.go#L678-L680 in runtime.gopanic
/usr/local/go/src/runtime/panic.go#L74-L76 in runtime.goPanicIndex
cockroach/pkg/col/coldata/bytes.go
Lines 79 to 81 in 402d4f6
cockroach/pkg/col/coldata/batch.go
Lines 263 to 265 in 402d4f6
cockroach/pkg/sql/colexec/case.go
Lines 254 to 256 in 402d4f6
cockroach/pkg/sql/colexec/operator.go
Lines 457 to 459 in 402d4f6
cockroach/pkg/sql/colexec/buffer.go
Lines 61 to 63 in 402d4f6
cockroach/pkg/sql/colexec/case.go
Lines 112 to 114 in 402d4f6
cockroach/pkg/sql/colexec/simple_project.go
Lines 123 to 125 in 402d4f6
cockroach/pkg/sql/colexec/hash_aggregator.go
Lines 221 to 223 in 402d4f6
cockroach/pkg/sql/colexec/routers.go
Lines 723 to 725 in 402d4f6
cockroach/pkg/sql/colexec/routers.go
Lines 658 to 660 in 402d4f6
cockroach/pkg/sql/colexecbase/colexecerror/error.go
Lines 90 to 92 in 402d4f6
cockroach/pkg/sql/colexec/routers.go
Lines 696 to 698 in 402d4f6
cockroach/pkg/sql/colexecbase/colexecerror/error.go
Lines 90 to 92 in 402d4f6
cockroach/pkg/sql/colexec/routers.go
Lines 654 to 656 in 402d4f6
cockroach/pkg/sql/colflow/vectorized_flow.go
Lines 658 to 660 in 402d4f6
cockroach/pkg/sql/colflow/vectorized_flow.go
Lines 1199 to 1201 in 402d4f6
/usr/local/go/src/runtime/asm_amd64.s#L1356-L1358 in runtime.goexit
v20.2.12
The text was updated successfully, but these errors were encountered: