From 6c0fba491e478c9fbf6fc6b334b76586f4645422 Mon Sep 17 00:00:00 2001 From: Luwei <814383175@qq.com> Date: Thu, 1 Aug 2024 09:48:47 +0800 Subject: [PATCH] [fix](compaction) fix duplicate key in agg/mor table caused by ordered data compaction (#38224) (#38642) pick master #38224 --- be/src/olap/compaction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/be/src/olap/compaction.cpp b/be/src/olap/compaction.cpp index 1e1ad3e2775514..2619d4d40a3027 100644 --- a/be/src/olap/compaction.cpp +++ b/be/src/olap/compaction.cpp @@ -189,7 +189,7 @@ bool Compaction::is_rowset_tidy(std::string& pre_max_key, const RowsetSharedPtr& 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));