diff --git a/dbms/src/Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp b/dbms/src/Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp index cab4ec04b42..5e9732c52a9 100644 --- a/dbms/src/Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp +++ b/dbms/src/Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp @@ -1576,7 +1576,8 @@ try auto create_block = [&](UInt64 beg, UInt64 end, UInt64 value) { constexpr UInt64 ts = 1; // Always use the same ts. auto block = DMTestEnv::prepareSimpleWriteBlock(beg, end, false, ts); - block.insert(createColumn(std::vector(end - beg + 1, value), value_col_name, value_col_id)); + block.insert(createColumn(std::vector(end - beg, value), value_col_name, value_col_id)); + block.checkNumberOfRows(); return block; };