fix check lob column bug

This commit is contained in:
Larry955
2023-02-16 13:45:10 +00:00
committed by ob-robot
parent 679c542777
commit d9a7c9d842

View File

@ -2261,7 +2261,7 @@ int ObOptSelectivity::get_like_sel(const OptTableMetas &table_metas,
ObOptEstUtils::is_calculable_expr(*pattern, params->count()) &&
ObOptEstUtils::is_calculable_expr(*escape, params->count())) {
bool is_start_with = false;
if (static_cast<const ObColumnRefRawExpr *>(variable)->is_lob_column()) {
if (is_lob_storage(variable->get_data_type())) {
// no statistics for lob type, use default selectivity
selectivity = DEFAULT_CLOB_LIKE_SEL;
} else if (OB_FAIL(ObOptEstUtils::if_expr_start_with_patten_sign(params, pattern, escape,