[FEAT MERGE] Lob SQL refactoring (Mem-LobLocator, expressions and dbms_lob adaptions)

Co-authored-by: chaser-ch <chaser.ch@antgroup.com>
This commit is contained in:
obdev
2023-01-28 20:40:15 +08:00
committed by ob-robot
parent 4bb1033505
commit 3d4f554258
350 changed files with 19091 additions and 3918 deletions

View File

@ -108,13 +108,15 @@ int ObExprNullSafeEqual::cg_expr(
} else {
auto &l = rt_expr.args_[0]->datum_meta_;
auto &r = rt_expr.args_[1]->datum_meta_;
bool has_lob_header = rt_expr.args_[0]->obj_meta_.has_lob_header() ||
rt_expr.args_[1]->obj_meta_.has_lob_header();
if (ObDatumFuncs::is_string_type(l.type_) && ObDatumFuncs::is_string_type(r.type_)) {
CK(l.cs_type_ == r.cs_type_);
}
if (OB_SUCC(ret)) {
funcs[0] = (void *)ObExprCmpFuncsHelper::get_datum_expr_cmp_func(
l.type_, r.type_, l.scale_, r.scale_, lib::is_oracle_mode(), l.cs_type_);
l.type_, r.type_, l.scale_, r.scale_, lib::is_oracle_mode(), l.cs_type_, has_lob_header);
CK(NULL != funcs[0]);
rt_expr.inner_functions_ = funcs;
rt_expr.inner_func_cnt_ = 1;