bugfix nullif expr deduce_type adapt json
This commit is contained in:
@ -222,6 +222,7 @@ int ObExprNullif::cg_expr(ObExprCGCtx &expr_cg_ctx, const ObRawExpr &raw_expr,
|
|||||||
// assign null type means can compare directly.
|
// assign null type means can compare directly.
|
||||||
info->cmp_meta_.type_ = ObNullType;
|
info->cmp_meta_.type_ = ObNullType;
|
||||||
} else {
|
} else {
|
||||||
|
bool has_lob_header = is_lob_storage(cmp_meta.get_type()) && expr_cg_ctx.cur_cluster_version_ >= CLUSTER_VERSION_4_1_0_0;
|
||||||
if (OB_ISNULL(cmp_func = ObExprCmpFuncsHelper::get_datum_expr_cmp_func(
|
if (OB_ISNULL(cmp_func = ObExprCmpFuncsHelper::get_datum_expr_cmp_func(
|
||||||
cmp_meta.get_type(),
|
cmp_meta.get_type(),
|
||||||
cmp_meta.get_type(),
|
cmp_meta.get_type(),
|
||||||
@ -231,7 +232,7 @@ int ObExprNullif::cg_expr(ObExprCGCtx &expr_cg_ctx, const ObRawExpr &raw_expr,
|
|||||||
calc_acc.get_precision(),
|
calc_acc.get_precision(),
|
||||||
lib::is_oracle_mode(),
|
lib::is_oracle_mode(),
|
||||||
cmp_meta.get_collation_type(),
|
cmp_meta.get_collation_type(),
|
||||||
cmp_meta.has_lob_header()))){
|
has_lob_header))){
|
||||||
ret = OB_INVALID_ARGUMENT;
|
ret = OB_INVALID_ARGUMENT;
|
||||||
LOG_WARN("cmp func is null", K(ret), K(cmp_meta));
|
LOG_WARN("cmp func is null", K(ret), K(cmp_meta));
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user