[dbms_stats]: don't gather stats for blob and clob.

This commit is contained in:
Monk-Liu
2023-02-07 17:40:59 +08:00
committed by ob-robot
parent 3d73ffb652
commit c3eb8f3b5a

View File

@ -384,6 +384,8 @@ int ObOptimizerStatsGatheringOp::calc_column_stats(ObExpr *expr,
LOG_WARN("get unexpected null pointer", K(ret));
} else if (OB_FAIL(get_col_stats_by_partinfo(part_ids, column_id, all_stats))) {
LOG_WARN("fail to get column stat", K(ret));
} else if (!ObColumnStatParam::is_valid_histogram_type(expr->obj_meta_.get_type())) {
// do nothing yet, shoul use the plain stats.
} else if (OB_FAIL(expr->eval(eval_ctx_, datum))) {
LOG_WARN("eval expr failed", K(ret));
} else if (OB_FAIL(datum->to_obj(res_obj, expr->obj_meta_))) {