diff --git a/be/src/olap/rowset/segment_v2/segment.cpp b/be/src/olap/rowset/segment_v2/segment.cpp index bff825780129db..b29d97efcf835a 100644 --- a/be/src/olap/rowset/segment_v2/segment.cpp +++ b/be/src/olap/rowset/segment_v2/segment.cpp @@ -834,7 +834,7 @@ Status Segment::lookup_row_key(const Slice& key, const TabletSchema* latest_sche DCHECK(_pk_index_reader != nullptr); if (!_pk_index_reader->check_present(key_without_seq)) { - return Status::Error("Can't find key in the segment"); + return Status::Error(""); } bool exact_match = false; std::unique_ptr index_iterator; @@ -844,7 +844,7 @@ Status Segment::lookup_row_key(const Slice& key, const TabletSchema* latest_sche return st; } if (st.is() || (!has_seq_col && !has_rowid && !exact_match)) { - return Status::Error("Can't find key in the segment"); + return Status::Error(""); } row_location->row_id = cast_set(index_iterator->get_current_ordinal()); row_location->segment_id = _segment_id; @@ -871,7 +871,7 @@ Status Segment::lookup_row_key(const Slice& key, const TabletSchema* latest_sche if (has_seq_col) { // compare key if (key_without_seq.compare(sought_key_without_seq) != 0) { - return Status::Error("Can't find key in the segment"); + return Status::Error(""); } if (with_seq_col && segment_has_seq_col) { @@ -891,7 +891,7 @@ Status Segment::lookup_row_key(const Slice& key, const TabletSchema* latest_sche Slice(sought_key.get_data(), sought_key.get_size() - rowid_length); // compare key if (key_without_seq.compare(sought_key_without_rowid) != 0) { - return Status::Error("Can't find key in the segment"); + return Status::Error(""); } } // found the key, use rowid in pk index if necessary.