jacktengg opened a new issue, #13863:
URL: https://github.com/apache/doris/issues/13863

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### Version
   
   master 83e55cade
   
   ### What's Wrong?
   
   upgrading be from 1.1-lts 87ff019 to 
master-83e55cadeļ¼Œregression-test/suites/datatype_p0/string/test_string_basic.groovy
   be coredump:
   ```
   Program terminated with signal SIGABRT, Aborted.
   #0  0x00007fbf1db67387 in raise () from /lib64/libc.so.6
   [Current thread is 1 (Thread 0x7d5044eaa700 (LWP 116903))]
   (gdb) bt
   #0  0x00007fbf1db67387 in raise () from /lib64/libc.so.6
   #1  0x00007fbf1db68a78 in abort () from /lib64/libc.so.6
   #2  0x0000558048c10969 in google::DumpStackTraceAndExit () at 
src/utilities.cc:160
   #3  0x0000558048c05f7d in google::LogMessage::Fail () at src/logging.cc:1650
   #4  0x0000558048c084b9 in google::LogMessage::SendToLog 
(this=0x7e57697fff90) at src/logging.cc:1607
   #5  0x0000558048c05ae6 in google::LogMessage::Flush (this=0x7e57697fff90) at 
src/logging.cc:1476
   #6  0x0000558048c08b29 in google::LogMessageFatal::~LogMessageFatal 
(this=<optimized out>, __in_chrg=<optimized out>)
       at src/logging.cc:2226
   #7  0x000055804417de9e in doris::vectorized::FunctionBuilderImpl::build 
(this=0x6040060cb120, 
       arguments=std::vector of length 2, capacity 2 = {...}, 
return_type=std::shared_ptr (count 1, weak 0) 0x60300437c840)
       at /mnt/disk/tengjianping/doris-test/be/src/vec/functions/function.h:283
   #8  0x0000558041b8822c in 
doris::vectorized::SimpleFunctionFactory::get_function (
       this=0x55804dddd9a0 
<doris::vectorized::SimpleFunctionFactory::instance()::instance>, name=..., 
       arguments=std::vector of length 2, capacity 2 = {...}, 
return_type=std::shared_ptr (count 1, weak 0) 0x60300437c840)
       at 
/mnt/disk/tengjianping/doris-test/be/src/vec/functions/simple_function_factory.h:146
   #9  0x000055804409d42e in doris::vectorized::VectorizedFnCall::prepare 
(this=0x61900944ee80, state=0x61c0012b7880, desc=..., 
       context=0x60600479ab00) at 
/mnt/disk/tengjianping/doris-test/be/src/vec/exprs/vectorized_fn_call.cpp:58
   #10 0x00005580440c2fb8 in doris::vectorized::VExprContext::prepare 
(this=0x60600479ab00, state=0x61c0012b7880, row_desc=...)
       at 
/mnt/disk/tengjianping/doris-test/be/src/vec/exprs/vexpr_context.cpp:52
   #11 0x00005580440b0328 in doris::vectorized::VExpr::prepare 
(ctxs=std::vector of length 2, capacity 2 = {...}, 
       state=0x61c0012b7880, row_desc=...) at 
/mnt/disk/tengjianping/doris-test/be/src/vec/exprs/vexpr.cpp:232
   #12 0x00005580418548d4 in doris::vectorized::VUnionNode::prepare 
(this=0x617001605000, state=0x61c0012b7880)
   --Type <RET> for more, q to quit, c to continue without paging--
      g/doris-test/be/src/vec/exec/vunion_node.cpp:69
   #13 0x000055803eb9675d in doris::PlanFragmentExecutor::prepare 
(this=0x617000c99bf0, request=..., fragments_ctx=0x6140017c3840)
       at 
/mnt/disk/tengjianping/doris-test/be/src/runtime/plan_fragment_executor.cpp:156
   #14 0x000055803eb42d31 in doris::FragmentExecState::prepare 
(this=0x617000c99b80, params=...)
       at /mnt/disk/tengjianping/doris-test/be/src/runtime/fragment_mgr.cpp:227
   #15 0x000055803eb4f67c in 
doris::FragmentMgr::exec_plan_fragment(doris::TExecPlanFragmentParams const&, 
std::function<void (doris::PlanFragmentExecutor*)>) (this=0x627000007100, 
params=..., cb=...) at 
/mnt/disk/tengjianping/doris-test/be/src/runtime/fragment_mgr.cpp:662
   #16 0x000055803eb4cd42 in doris::FragmentMgr::exec_plan_fragment 
(this=0x627000007100, params=...)
       at /mnt/disk/tengjianping/doris-test/be/src/runtime/fragment_mgr.cpp:546
   #17 0x000055803f161327 in doris::PInternalServiceImpl::_exec_plan_fragment 
(this=0x61800000ec80, ser_request=..., 
       version=doris::VERSION_2, compact=true) at 
/mnt/disk/tengjianping/doris-test/be/src/service/internal_service.cpp:370
   #18 0x000055803f15d7d4 in doris::PInternalServiceImpl::exec_plan_fragment 
(this=0x61800000ec80, cntl_base=0x616002a0c380, 
       request=0x604002309110, response=0x6030059fddc0, done=0x60600623c480)
   ```
   
   Error log:
   ```
   F1031 16:01:27.998467 116903 function.h:283] Check failed: 
return_type->equals(*func_return_type) || (return_type->is_nullable() && 
func_return_type->is_nullable() && 
is_nothing(((DataTypeNullable*)func_return_type.get())->get_nested_type())) || 
(is_date_or_datetime( return_type->is_nullable() ? 
((DataTypeNullable*)return_type.get())->get_nested_type() : return_type) && 
is_date_or_datetime(get_return_type(arguments)->is_nullable() ? 
((DataTypeNullable*)get_return_type(arguments).get()) ->get_nested_type() : 
get_return_type(arguments))) || (is_date_v2_or_datetime_v2( 
return_type->is_nullable() ? 
((DataTypeNullable*)return_type.get())->get_nested_type() : return_type) && 
is_date_v2_or_datetime_v2( get_return_type(arguments)->is_nullable() ? 
((DataTypeNullable*)get_return_type(arguments).get()) ->get_nested_type() : 
get_return_type(arguments))) || (is_date_v2_or_datetime_v2( 
return_type->is_nullable() ? 
((DataTypeNullable*)return_type.get())->get_nested_type() : return_type) && 
is_da
 te_or_datetime(get_return_type(arguments)->is_nullable() ? 
((DataTypeNullable*)get_return_type(arguments).get()) ->get_nested_type() : 
get_return_type(arguments))) || (is_decimal(return_type->is_nullable() ? 
((DataTypeNullable*)return_type.get())->get_nested_type() : return_type) && 
is_decimal(get_return_type(arguments)->is_nullable() ? 
((DataTypeNullable*)get_return_type(arguments).get()) ->get_nested_type() : 
get_return_type(arguments)))  for function 'repeat' with String and 
Nullable(String)    
   ```
   
   ### What You Expected?
   
   test cast run OK
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to