to issue<2024110900105037796>:fix pl cache issue when alter column to visible
This commit is contained in:
@ -81,7 +81,7 @@ int PCVPlSchemaObj::deep_copy_column_infos(const ObTableSchema *schema)
|
||||
int64_t real_column_cnt = 0;
|
||||
for (; OB_SUCC(ret) && cs_iter != cs_iter_end; cs_iter++) {
|
||||
const ObColumnSchemaV2 &column_schema = **cs_iter;
|
||||
if (!column_schema.is_hidden()) {
|
||||
if (!(column_schema.is_hidden() || column_schema.is_invisible_column())) {
|
||||
real_column_cnt++;
|
||||
}
|
||||
}
|
||||
@ -97,7 +97,7 @@ int PCVPlSchemaObj::deep_copy_column_infos(const ObTableSchema *schema)
|
||||
cs_iter_end = schema->column_end();
|
||||
for (; OB_SUCC(ret) && cs_iter != cs_iter_end; cs_iter++) {
|
||||
const ObColumnSchemaV2 &column_schema = **cs_iter;
|
||||
if (column_schema.is_hidden()) {
|
||||
if (column_schema.is_hidden() || column_schema.is_invisible_column()) {
|
||||
// do nothing
|
||||
} else {
|
||||
if (nullptr == (obj_buf = inner_alloc_->alloc(sizeof(ObPLTableColumnInfo)))) {
|
||||
@ -415,7 +415,7 @@ int ObPLObjectValue::obtain_new_column_infos(share::schema::ObSchemaGetterGuard
|
||||
ObTableSchema::const_column_iterator cs_iter_end = table_schema->column_end();
|
||||
for (; OB_SUCC(ret) && cs_iter != cs_iter_end; cs_iter++) {
|
||||
const ObColumnSchemaV2 &column_schema = **cs_iter;
|
||||
if (column_schema.is_hidden()) {
|
||||
if (column_schema.is_hidden() || column_schema.is_invisible_column()) {
|
||||
// do nothing
|
||||
} else {
|
||||
column_info.column_id_ = column_schema.get_column_id();
|
||||
|
Reference in New Issue
Block a user