-
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
sentry: comparison ops with suboperators don't handle NULLs #37547
Comments
Looks like a comparison operator with a subop assumes that the right side is either an array or a tuple, and in this case, there was a different reality. What could that reality be? |
Oh, I think the message says - it's a DNull literal? |
repro:
I think this might be caused by constant-folding an array-typed value to |
repro that doesn't involve constant folding:
|
I think the fix here is to make sure that comparison exprs with sub operators explicitly look for NULL, just like all other builtins. Here's a repro without builtins:
|
37775: tree: handle null in suboperator expressions r=rafiss a=rafiss Before this change, a null right operand in a suboperator would cause an unhandled error. We were receiving stack trace reports from the wild. Add a test and fix it. fixes #37547 Release note (bug fix): a null right operand now causes the suboperator expression to return null Co-authored-by: Rafi Shamim <[email protected]>
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/1029811314/?referrer=webhooks_plugin
Panic message:
Stacktrace (expand for inline code snippets):
cockroach/pkg/sql/sem/tree/eval.go
Lines 3599 to 3601 in 25dd36f
cockroach/pkg/sql/sem/tree/eval.go
Lines 2780 to 2782 in 25dd36f
cockroach/pkg/sql/sqlbase/expr_filter.go
Lines 25 to 27 in 25dd36f
cockroach/pkg/sql/distsqlrun/expr.go
Lines 178 to 180 in 25dd36f
cockroach/pkg/sql/distsqlrun/processors.go
Lines 354 to 356 in 25dd36f
cockroach/pkg/sql/distsqlrun/processors.go
Lines 777 to 779 in 25dd36f
cockroach/pkg/sql/distsqlrun/tablereader.go
Lines 289 to 291 in 25dd36f
cockroach/pkg/sql/distsqlrun/aggregator.go
Lines 532 to 534 in 25dd36f
cockroach/pkg/sql/distsqlrun/aggregator.go
Lines 720 to 722 in 25dd36f
cockroach/pkg/sql/distsqlrun/base.go
Lines 173 to 175 in 25dd36f
cockroach/pkg/sql/distsqlrun/processors.go
Lines 800 to 802 in 25dd36f
cockroach/pkg/sql/distsqlrun/flow.go
Lines 625 to 627 in 25dd36f
cockroach/pkg/sql/distsql_running.go
Lines 251 to 253 in 25dd36f
cockroach/pkg/sql/distsql_running.go
Lines 838 to 840 in 25dd36f
cockroach/pkg/sql/conn_executor_exec.go
Lines 1111 to 1113 in 25dd36f
cockroach/pkg/sql/conn_executor_exec.go
Lines 947 to 949 in 25dd36f
cockroach/pkg/sql/conn_executor_exec.go
Lines 455 to 457 in 25dd36f
cockroach/pkg/sql/conn_executor_exec.go
Lines 101 to 103 in 25dd36f
cockroach/pkg/sql/conn_executor.go
Lines 1240 to 1242 in 25dd36f
cockroach/pkg/sql/conn_executor.go
Lines 432 to 434 in 25dd36f
cockroach/pkg/sql/pgwire/conn.go
Lines 336 to 338 in 25dd36f
v19.1.0
go1.11.6
The text was updated successfully, but these errors were encountered: