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

BE crashed after modify column type from varchar to decimal #44406

Closed
sduzh opened this issue Apr 19, 2024 · 0 comments · Fixed by #44439
Closed

BE crashed after modify column type from varchar to decimal #44406

sduzh opened this issue Apr 19, 2024 · 0 comments · Fixed by #44439
Labels
type/bug Something isn't working

Comments

@sduzh
Copy link
Contributor

sduzh commented Apr 19, 2024

Steps to reproduce the behavior (Required)

  1. CREATE TABLE t0(c0 INT, c1 VARCHAR(32)) PRIMARY KEY(c0) DISTRIBUTED BY HASH(c0) BUCKETS 1;
  2. INSERT INTO t0 VALUES(1, '10.123');
  3. ALTER TABLE t0 MODIFY c1 DECIMAL(10, 5);
  4. SELECT * FROM t0;

Expected behavior (Required)

Real behavior (Required)

BE process crashed.

be.out:

*** Aborted at 1713493444 (unix time) try "date -d @1713493444" if you are using GNU date ***
PC: @     0x7f99a3eb2387 __GI_raise
*** SIGABRT (@0x3ef003d0183) received by PID 3998083 (TID 0x7f969f051700) from PID 3998083; stack trace: ***
    @         0x1eb43c12 google::(anonymous namespace)::FailureSignalHandler()
    @     0x7f99a4259630 (unknown)
    @     0x7f99a3eb2387 __GI_raise
    @     0x7f99a3eb3a78 __GI_abort
    @         0x11a22d72 starrocks::failure_function()
    @         0x1eb30d1d google::LogMessage::Fail()
    @         0x1eb3318f google::LogMessage::SendToLog()
    @         0x1eb3086e google::LogMessage::Flush()
    @         0x1eb33799 google::LogMessageFatal::~LogMessageFatal()
    @         0x11bd835e starrocks::DecimalV3Column<>::DecimalV3Column()
    @         0x11bd8465 starrocks::DecimalV3Column<>::DecimalV3Column()
    @         0x13ef2226 _ZSt12construct_atIN9starrocks15DecimalV3ColumnIlEEJRiS3_RKmEEDTgsnwcvPvLi0E_T_pispcl7declvalIT0_EEEEPS7_DpOS8_
    @         0x13ef22b6 std::allocator_traits<>::construct<>()
    @         0x13eecca1 std::_Sp_counted_ptr_inplace<>::_Sp_counted_ptr_inplace<>()
    @         0x13ee609e std::__shared_count<>::__shared_count<>()
    @         0x13edaebd std::__shared_ptr<>::__shared_ptr<>()
    @         0x13ed2b95 std::shared_ptr<>::shared_ptr<>()
    @         0x13eca8ff std::allocate_shared<>()
    @         0x13ec261d std::make_shared<>()
    @         0x13eafc79 starrocks::ColumnFactory<>::create<>()
    @         0x13e3aae2 starrocks::DecimalNonDecimalCast<>::decimal_from()
    @         0x13df6917 starrocks::DecimalFrom<>::evaluate<>()
    @         0x13d4f6e6 starrocks::UnpackConstColumnUnaryFunction<>::evaluate<>()
    @         0x13c8c80b starrocks::DealNullableColumnUnaryFunction<>::evaluate<>()
    @         0x138ad3d4 starrocks::VectorizedCastExpr<>::evaluate_checked()
    @         0x1795efb6 starrocks::Expr::evaluate()
    @         0x1795b5d6 starrocks::CastColumnIterator::do_cast()
    @         0x1795c365 starrocks::CastColumnIterator::next_batch()
    @         0x136538db starrocks::SegmentIterator::ScanContext::read_columns()
    @         0x13655bc2 starrocks::SegmentIterator::_read()
    @         0x13633df0 starrocks::SegmentIterator::_do_get_next()
    @         0x13632ef8 starrocks::SegmentIterator::do_get_next()

be.INFO:

0419 10:24:04.460861 3998810 decimalv3_column.cpp:28] Check failed: 0 <= _scale && _scale <= _precision && _precision <= decimal_precision_limit<T>

StarRocks version (Required)

  • main #344a821
  • share data mode
@sduzh sduzh added the type/bug Something isn't working label Apr 19, 2024
@sduzh sduzh changed the title BE crashed after modify column BE crashed after modify column type from varchar to decimal Apr 19, 2024
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

Successfully merging a pull request may close this issue.

1 participant