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

Expression in load leads BE crash #32224

Closed
rickif opened this issue Oct 8, 2023 · 0 comments
Closed

Expression in load leads BE crash #32224

rickif opened this issue Oct 8, 2023 · 0 comments
Labels
type/bug Something isn't working

Comments

@rickif
Copy link
Contributor

rickif commented Oct 8, 2023

Steps to reproduce the behavior (Required)

  1. CREATE TABLE
CREATE TABLE `t2` (   `c1` int(11) NULL COMMENT "",   `c2` decimal128(27, 6) NULL COMMENT "", c3 date ) ENGINE=OLAP  duplicate KEY(`c1`) COMMENT "" DISTRIBUTED BY HASH(`c1`) BUCKETS 1  PROPERTIES ( "replication_num" = "1", "in_memory" = "false", "storage_format" = "DEFAULT", "enable_persistent_index" = "false" );
  1. Load data
curl --location-trusted -u root: -H "format: json" -H "columns: c1, c2=if(c1 is null, \"\", "55")" -H 'expect: 100-continue'  -XPUT http://127.0.0.1:18053/api/db0/t2/_stream_load -d '{"c1":"10387"}'

Expected behavior (Required)

Load is successful.

Real behavior (Required)

Be exit with crash stack.

    @     0x7f71178b9730 (unknown)
    @     0x7f71164f38eb gsignal
    @     0x7f71164de535 abort
    @     0x7f71164de40f (unknown)
    @     0x7f71164ec1a2 __assert_fail
    @          0x4e9db54 down_cast<>()
    @          0x626ee32 starrocks::vectorized::ColumnHelper::cast_to_raw<>()
    @          0x7133d66 starrocks::vectorized::DecimalNonDecimalCast<>::decimal_from()
    @          0x7130d0d starrocks::vectorized::DecimalFrom<>::evaluate<>()
    @          0x7128850 starrocks::vectorized::UnpackConstColumnUnaryFunction<>::evaluate<>()
    @          0x70fa7f5 starrocks::vectorized::DealNullableColumnUnaryFunction<>::evaluate<>()
    @          0x70a70c4 starrocks::vectorized::VectorizedCastExpr<>::evaluate()
    @          0x6ca0a2f starrocks::ExprContext::evaluate()
    @          0x6ca0922 starrocks::ExprContext::evaluate()
    @          0x670837b starrocks::vectorized::FileScanner::materialize()
    @          0x62c041e starrocks::vectorized::JsonScanner::get_next()
    @          0x62ac0e3 starrocks::vectorized::FileScanNode::_scanner_scan()
    @          0x62ac8fa starrocks::vectorized::FileScanNode::_scanner_worker()
    @          0x62b17e5 std::__invoke_impl<>()
    @          0x62b16bc std::__invoke<>()
    @          0x62b15b3 _ZNSt6thread8_InvokerISt5tupleIJMN9starrocks10vectorized12FileScanNodeEFviiEPS4_imEEE9_M_invokeIJLm0ELm1ELm2ELm3EEEEvSt12_Index_tupleIJXspT_EEE
    @          0x62b1534 std::thread::_Invoker<>::operator()()
    @          0x62b1518 std::thread::_State_impl<>::_M_run()
    @          0x9cd9780 execute_native_thread_routine
    @     0x7f71178aefa3 start_thread
    @     0x7f71165b563f clone
    @                0x0 (unknown)

StarRocks version (Required)

  • You can get the StarRocks version by executing SQL select current_version()
@rickif rickif added the type/bug Something isn't working label Oct 8, 2023
@rickif rickif closed this as completed Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant