fix some master opt stats bug

This commit is contained in:
wangt1xiuyi
2023-11-06 03:39:51 +00:00
committed by ob-robot
parent 7846915626
commit 6bcea4de73
6 changed files with 25 additions and 7 deletions

View File

@ -54,8 +54,7 @@ bool ObColumnStatParam::is_valid_opt_col_type(const ObObjType type)
type_class == ColumnTypeClass::ObEnumSetTC ||
type_class == ColumnTypeClass::ObIntervalTC ||
type_class == ColumnTypeClass::ObDecimalIntTC ||
(lib::is_mysql_mode() && (type == ObTinyTextType ||
type == ObTextType))) {
(lib::is_mysql_mode() && type_class == ColumnTypeClass::ObTextTC)) {
ret = true;
}
return ret;