[fix](function) make STRLEFT and STRRIGHT and SUBSTR function DEPEND_ON_ARGUMENT (#28352)

make STRLEFT and STRRIGHT function DEPEND_ON_ARGUMENT
This commit is contained in:
koarz
2024-01-24 13:34:59 +08:00
committed by yiguolei
parent 88fdb2677d
commit ca5a314765
26 changed files with 533 additions and 351 deletions

View File

@ -1015,6 +1015,12 @@ void register_function_string(SimpleFunctionFactory& factory) {
factory.register_function<FunctionSubReplace<SubReplaceThreeImpl>>();
factory.register_function<FunctionSubReplace<SubReplaceFourImpl>>();
/// @TEMPORARY: for be_exec_version=3
factory.register_alternative_function<FunctionSubstringOld<Substr3ImplOld>>();
factory.register_alternative_function<FunctionSubstringOld<Substr2ImplOld>>();
factory.register_alternative_function<FunctionLeftOld>();
factory.register_alternative_function<FunctionRightOld>();
factory.register_alias(FunctionLeft::name, "strleft");
factory.register_alias(FunctionRight::name, "strright");
factory.register_alias(SubstringUtil::name, "substr");