Skip to content
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

sqlsmith bug hunt: panic on btrim #3356

Closed
Tracked by #2571
neverchanje opened this issue Jun 21, 2022 · 0 comments · Fixed by #3402
Closed
Tracked by #2571

sqlsmith bug hunt: panic on btrim #3356

neverchanje opened this issue Jun 21, 2022 · 0 comments · Fixed by #3402
Assignees
Labels
good first issue Good for newcomers help wanted Issues that need help from contributors type/bug Something isn't working

Comments

@neverchanje
Copy link
Contributor

Describe the bug
A clear and concise description of what the bug is.

2022-06-20T16:34:34.476353Z ERROR risingwave_batch::rpc::service::task_service: failed to fire task internal error: [PlanNode: Ok(Project(ProjectNode { select_list: [ExprNode { expr_type: Trim, return_type: Some(DataType { type_name: Varchar, precision: 0, scale: 0, is_nullable: true, interval_type: Invalid, field_type: [] }), rex_node: Some(FuncCall(FunctionCall { children: [ExprNode { expr_type: ConstantValue, return_type: Some(DataType { type_name: Varchar, precision: 0, scale: 0, is_nullable: true, interval_type: Invalid, field_type: [] }), rex_node: Some(Constant(ConstantValue { body: [54, 70, 89, 78, 87, 104, 78, 117, 118, 48] })) }, ExprNode { expr_type: ConstantValue, return_type: Some(DataType { type_name: Varchar, precision: 0, scale: 0, is_nullable: true, interval_type: Invalid, field_type: [] }), rex_node: Some(Constant(ConstantValue { body: [97, 98, 99] })) }] })) }] }))] Failed to build executor: Expr error: Internal(children.len() == 1

Stack backtrace:
   0: std::backtrace_rs::backtrace::libunwind::trace
             at /rustc/bb8c2f41174caceec00c28bc6c5c20ae9f9a175c/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1: std::backtrace_rs::backtrace::trace_unsynchronized
             at /rustc/bb8c2f41174caceec00c28bc6c5c20ae9f9a175c/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2: std::backtrace::Backtrace::create
             at /rustc/bb8c2f41174caceec00c28bc6c5c20ae9f9a175c/library/std/src/backtrace.rs:328:13
   3: anyhow::kind::Adhoc::new
             at /Users/wutao/.cargo/registry/src/github.com-1ecc6299db9ec823/anyhow-1.0.57/src/kind.rs:70:36
   4: risingwave_expr::expr::build_expr_from_prost::build_trim_expr
             at ./src/expr/src/expr/build_expr_from_prost.rs:103:5

To Reproduce
Steps to reproduce the behavior.

select trim(Both 'abc' from '6FYNWhNuv0');

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
Add any other context about the problem here.

@neverchanje neverchanje added type/bug Something isn't working help wanted Issues that need help from contributors labels Jun 21, 2022
@TennyZhuang TennyZhuang added the good first issue Good for newcomers label Jun 21, 2022
@lmatz lmatz self-assigned this Jun 21, 2022
@lmatz lmatz mentioned this issue Jun 22, 2022
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Issues that need help from contributors type/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants