Skip to content

Commit

Permalink
opt
Browse files Browse the repository at this point in the history
  • Loading branch information
qidaye committed Feb 6, 2025
1 parent d744114 commit 54a26c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion be/src/olap/compaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ void Compaction::construct_index_compaction_columns(RowsetWriterContext& ctx) {
continue;
}
auto col_unique_id = col_unique_ids[0];
if (!_cur_tablet_schema->exist_column_by_uid(col_unique_id)) {
if (!_cur_tablet_schema->has_column_unique_id(col_unique_id)) {
LOG(WARNING) << "tablet[" << _tablet->tablet_id() << "] column_unique_id["
<< col_unique_id << "] not found, will skip index compaction";
continue;
Expand Down
2 changes: 1 addition & 1 deletion be/src/olap/tablet_schema.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1360,7 +1360,7 @@ bool TabletSchema::exist_column(const std::string& field_name) const {
return _field_name_to_index.contains(StringRef {field_name});
}

bool TabletSchema::exist_column_by_uid(int32_t col_unique_id) const {
bool TabletSchema::has_column_unique_id(int32_t col_unique_id) const {
return _field_id_to_index.contains(col_unique_id);
}

Expand Down
2 changes: 1 addition & 1 deletion be/src/olap/tablet_schema.h
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ class TabletSchema : public MetadataAdder<TabletSchema> {
Result<const TabletColumn*> column(const std::string& field_name) const;
Status have_column(const std::string& field_name) const;
bool exist_column(const std::string& field_name) const;
bool exist_column_by_uid(int32_t col_unique_id) const;
bool has_column_unique_id(int32_t col_unique_id) const;
const TabletColumn& column_by_uid(int32_t col_unique_id) const;
TabletColumn& mutable_column_by_uid(int32_t col_unique_id);
TabletColumn& mutable_column(size_t ordinal);
Expand Down

0 comments on commit 54a26c6

Please sign in to comment.