[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

@ -312,12 +312,20 @@ int ObExprLeastGreatest::cg_expr(ObExprCGCtx &op_cg_ctx,
info->cmp_meta_.scale_ = cmp_meta.get_scale();
info->cm_ = cm;
rt_expr.extra_info_ = info;
bool has_lob_header = false;
if (is_lob_storage(info->cmp_meta_.type_)) {
if (op_cg_ctx.session_->get_exec_min_cluster_version() >= CLUSTER_VERSION_4_1_0_0) {
has_lob_header = true;
}
}
ObDatumCmpFuncType cmp_func = ObDatumFuncs::get_nullsafe_cmp_func(cmp_meta.get_type(),
cmp_meta.get_type(),
NULL_LAST,
cmp_meta.get_collation_type(),
info->cmp_meta_.scale_,
lib::is_oracle_mode());
lib::is_oracle_mode(),
has_lob_header);
if (OB_ISNULL(cmp_func)) {
ret = OB_INVALID_ARGUMENT;
LOG_WARN("invalid cmp type of params", K(ret), K(cmp_meta));