diff --git a/be/src/olap/compaction.cpp b/be/src/olap/compaction.cpp index ad26c7f3eb6307..296cb55fd84780 100644 --- a/be/src/olap/compaction.cpp +++ b/be/src/olap/compaction.cpp @@ -103,7 +103,7 @@ bool is_rowset_tidy(std::string& pre_max_key, const RowsetSharedPtr& rhs) { if (!ret) { return false; } - if (min_key < pre_max_key) { + if (min_key <= pre_max_key) { return false; } CHECK(rhs->max_key(&pre_max_key));