From 47586ac61aad984bd5157c18f4fe6c35efcf35f2 Mon Sep 17 00:00:00 2001 From: Yukang-Lian Date: Fri, 27 Dec 2024 16:25:04 +0800 Subject: [PATCH] 2 --- be/test/olap/rowset/rowset_meta_test.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/be/test/olap/rowset/rowset_meta_test.cpp b/be/test/olap/rowset/rowset_meta_test.cpp index a65c3b4b5fbc9a..66ceaa02714799 100644 --- a/be/test/olap/rowset/rowset_meta_test.cpp +++ b/be/test/olap/rowset/rowset_meta_test.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #include #include @@ -112,4 +113,13 @@ TEST_F(RowsetMetaTest, TestInitWithInvalidData) { EXPECT_FALSE(rowset_meta.init("invalid pb meta data")); } +TEST_F(RowsetMetaTest, TestRowsetIdInit) { + RowsetId id {}; + config::force_regenerate_rowsetid_on_start_error = true; + std::string rowset_id_str = "test"; + id.init(rowset_id_str); + // 0x100000000000000 - 0x01 + EXPECT_EQ(id.to_string(), "72057594037927935"); +} + } // namespace doris