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 crash when order by limit with null literal #11648

Closed
stdpain opened this issue Sep 26, 2022 · 0 comments · Fixed by #11651
Closed

BE crash when order by limit with null literal #11648

stdpain opened this issue Sep 26, 2022 · 0 comments · Fixed by #11651
Labels
type/bug Something isn't working

Comments

@stdpain
Copy link
Contributor

stdpain commented Sep 26, 2022

Steps to reproduce the behavior (Required)

part is from SSB-100G

select p_name from part order by null limit 10;

Expected behavior (Required)

mysql> select p_name from part order by null limit 10;
+------------------+
| p_name           |
+------------------+
| dim white        |
| ivory olive      |
| ghost antique    |
| bisque burnished |
| firebrick red    |
| sky deep         |
| powder pink      |
| lace wheat       |
| indian forest    |
| moccasin royal   |
+------------------+
10 rows in set (0.17 sec)

Real behavior (Required)

query_id:75563a59-3d70-11ed-a7ee-5254007b45e6, fragment_instance:75563a59-3d70-11ed-a7ee-5254007b45e6
*** Aborted at 1664178873 (unix time) try "date -d @1664178873" if you are using GNU date ***
PC: @     0x7f225e4cf387 __GI_raise
*** SIGABRT (@0x3f300022a52) received by PID 141906 (TID 0x7f21aec38700) from PID 141906; stack trace: ***
    @          0xe10cef2 google::(anonymous namespace)::FailureSignalHandler()
starrocks_be: ../src/gutil/casts.h:79: To down_cast(From*) [with To = starrocks::vectorized::NullableColumn*; From = starrocks::vectorized::Column]: Assertion `f == __null || dynamic_cast<To>(f) != __null' failed.
    @     0x7f225ef84630 (unknown)
    @     0x7f225e4cf387 __GI_raise
    @     0x7f225e4d0a78 __GI_abort
    @     0x7f225e4c81a6 __assert_fail_base
starrocks_be: ../src/gutil/casts.h:79: To down_cast(From*) [with To = starrocks::vectorized::NullableColumn*; From = starrocks::vectorized::Column]: Assertion `f == __null || dynamic_cast<To>(f) != __null' failed.
    @     0x7f225e4c8252 __GI___assert_fail
starrocks_be: ../src/gutil/casts.h:79: To down_cast(From*) [with To = starrocks::vectorized::NullableColumn*; From = starrocks::vectorized::Column]: Assertion `f == __null || dynamic_cast<To>(f) != __null' failed.
    @          0x6b08bbc down_cast<>()
starrocks_be: ../src/gutil/casts.h:79: To down_cast(From*) [with To = starrocks::vectorized::NullableColumn*; From = starrocks::vectorized::Column]: Assertion `f == __null || dynamic_cast<To>(f) != __null' failed.
starrocks_be: ../src/gutil/casts.h:79: To down_cast(From*) [with To = starrocks::vectorized::NullableColumn*; From = starrocks::vectorized::Column]: Assertion `f == __null || dynamic_cast<To>(f) != __null' failed.
    @          0x9e07091 starrocks::vectorized::ChunksSorterHeapSort::_do_filter_data_for_type<>()
starrocks_be: ../src/gutil/casts.h:79: To down_cast(From*) [with To = starrocks::vectorized::NullableColumn*; From = starrocks::vectorized::Column]: Assertion `f == __null || dynamic_cast<To>(f) != __null' failed.
starrocks_be: ../src/gutil/casts.h:79: To down_cast(From*) [with To = starrocks::vectorized::NullableColumn*; From = starrocks::vectorized::Column]: Assertion `f == __null || dynamic_cast<To>(f) != __null' failed.
    @          0x9e10b0f std::__invoke_impl<>()
starrocks_be: ../src/gutil/casts.h:79: To down_cast(From*) [with To = starrocks::vectorized::NullableColumn*; From = starrocks::vectorized::Column]: Assertion `f == __null || dynamic_cast<To>(f) != __null' failed.
    @          0x9e107b7 std::__invoke<>()
starrocks_be: ../src/gutil/casts.h:79: To down_cast(From*) [with To = starrocks::vectorized::NullableColumn*; From = starrocks::vectorized::Column]: Assertion `f == __null || dynamic_cast<To>(f) != __null' failed.
starrocks_be: ../src/gutil/casts.h:79: To down_cast(From*) [with To = starrocks::vectorized::NullableColumn*; From = starrocks::vectorized::Column]: Assertion `f == __null || dynamic_cast<To>(f) != __null' failed.
    @          0x9e103d7 _ZNSt5_BindIFMN9starrocks10vectorized20ChunksSorterHeapSortEFvPNS1_6detail11ChunkHolderEPSt6vectorIhSaIhEEiEPS2_St12_PlaceholderILi1EESD_ILi2EESD_ILi3EEEE6__callIvJOS5_OS9_OiEJLm0ELm1ELm2ELm3EEEET_OSt5tupleIJDpT0_EESt12_Index_tupleIJXspT1_EEE
starrocks_be: ../src/gutil/casts.h:79: To down_cast(From*) [with To = starrocks::vectorized::NullableColumn*; From = starrocks::vectorized::Column]: Assertion `f == __null || dynamic_cast<To>(f) != __null' failed.
    @          0x9e0fcc5 std::_Bind<>::operator()<>()
    @          0x9e0ecd7 std::__invoke_impl<>()
    @          0x9e0e0fa _ZSt10__invoke_rIvRSt5_BindIFMN9starrocks10vectorized20ChunksSorterHeapSortEFvPNS2_6detail11ChunkHolderEPSt6vectorIhSaIhEEiEPS3_St12_PlaceholderILi1EESE_ILi2EESE_ILi3EEEEJS6_SA_iEENSt9enable_ifIX16is_invocable_r_vIT_T0_DpT1_EESM_E4typeEOSN_DpOSO_
    @          0x9e0c8d1 std::_Function_handler<>::_M_invoke()
    @          0x9e07ed6 std::function<>::operator()()
    @          0x9df4f07 starrocks::vectorized::ChunksSorterHeapSort::_filter_data()
    @          0x9df3234 starrocks::vectorized::ChunksSorterHeapSort::update()
    @          0xa5772b1 starrocks::pipeline::PartitionSortSinkOperator::push_chunk()
    @          0xa626e9e starrocks::pipeline::PipelineDriver::process()
    @          0xa5f7eab starrocks::pipeline::GlobalDriverExecutor::_worker_thread()
    @          0xa5f68c6 _ZZN9starrocks8pipeline20GlobalDriverExecutor10initializeEiENKUlvE2_clEv
    @          0xa5fec7e _ZSt13__invoke_implIvRZN9starrocks8pipeline20GlobalDriverExecutor10initializeEiEUlvE2_JEET_St14__invoke_otherOT0_DpOT1_
    @          0xa5fe37d _ZSt10__invoke_rIvRZN9starrocks8pipeline20GlobalDriverExecutor10initializeEiEUlvE2_JEENSt9enable_ifIX16is_invocable_r_vIT_T0_DpT1_EES6_E4typeEOS7_DpOS8_
    @          0xa5fd7a1 _ZNSt17_Function_handlerIFvvEZN9starrocks8pipeline20GlobalDriverExecutor10initializeEiEUlvE2_E9_M_invokeERKSt9_Any_data
    @          0x64d495a std::function<>::operator()()
    @          0x88c29b6 starrocks::FunctionRunnable::run()
    @          0x88bf7b8 starrocks::ThreadPool::dispatch_thread()
    @          0x88dcf68 std::__invoke_impl<>()
    @          0x88dc8c1 std::__invoke<>()
    @          0x88dbcb8 _ZNSt5_BindIFMN9starrocks10ThreadPoolEFvvEPS1_EE6__callIvJEJLm0EEEET_OSt5tupleIJDpT0_EESt12_Index_tupleIJXspT1_EEE
    @          0x88da61a std::_Bind<>::operator()<>()

StarRocks version (Required)

  • 2.2.6 2.2.7
  • 2.3.2
  • 2.4.0-rc02
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