[CP] [CP] function index gather table stats

This commit is contained in:
ChangerR
2024-10-12 13:47:01 +00:00
committed by ob-robot
parent ca7b0f6734
commit 4182ed5513
20 changed files with 911 additions and 60 deletions

View File

@ -358,7 +358,7 @@ int ObOptimizerStatsGatheringOp::calc_column_stats(ObExpr *expr, uint64_t column
} else if (OB_ISNULL(global_col_stat)) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("get unexpected null", K(ret));
} else if (!ObColumnStatParam::is_valid_opt_col_type(expr->obj_meta_.get_type())) {
} else if (!ObColumnStatParam::is_valid_opt_col_type(expr->obj_meta_.get_type(), true)) {
// do nothing yet, should use the plain stats.
} else if (OB_FAIL(expr->eval(eval_ctx_, datum))) {
LOG_WARN("failed to eval expr", K(*expr));