Skip to content

Commit

Permalink
move
Browse files Browse the repository at this point in the history
  • Loading branch information
csun5285 committed Jun 12, 2024
1 parent 8e2f778 commit ad3cd43
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions be/src/vec/common/schema_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,8 @@ void inherit_root_attributes(TabletSchemaSPtr& schema) {
// Add index meta if extracted column is missing index meta
for (size_t i = 0; i < schema->num_columns(); ++i) {
TabletColumn& col = schema->mutable_column(i);
if (!col.is_extracted_column()) {
if (!col.is_extracted_column() ||
!segment_v2::InvertedIndexColumnWriter::check_column_valid(col)) {
continue;
}
if (col.type() != FieldType::OLAP_FIELD_TYPE_TINYINT &&
Expand All @@ -406,10 +407,6 @@ void inherit_root_attributes(TabletSchemaSPtr& schema) {
auto index_meta = schema->get_inverted_index(col);
// add index meta
TabletIndex index_info = it->second;
if (index_info.index_type() == IndexType::INVERTED &&
!segment_v2::InvertedIndexColumnWriter::check_column_valid(col)) {
continue;
}
index_info.set_escaped_escaped_index_suffix_path(col.path_info_ptr()->get_path());
if (index_meta != nullptr) {
// already exist
Expand Down

0 comments on commit ad3cd43

Please sign in to comment.