diff --git a/be/src/olap/rowset/segment_v2/segment.cpp b/be/src/olap/rowset/segment_v2/segment.cpp index 32e4683576..c7bda4d3ad 100644 --- a/be/src/olap/rowset/segment_v2/segment.cpp +++ b/be/src/olap/rowset/segment_v2/segment.cpp @@ -360,7 +360,8 @@ Status Segment::_create_column_readers(const SegmentFooterPB& footer) { vectorized::PathInData path; path.from_protobuf(column_pb.column_path_info()); column_path_to_footer_ordinal.emplace(path, ordinal); - } else { + } + if (column_pb.has_unique_id()) { // unique id column_id_to_footer_ordinal.emplace(column_pb.unique_id(), ordinal); }