From 602e434d4d0e3c6866e4acfb26ae3848e0aefae0 Mon Sep 17 00:00:00 2001 From: Maxim Yurchuk Date: Thu, 16 Jan 2025 11:35:51 +0300 Subject: [PATCH] Fix log workload for one key column --- ydb/library/workload/log/log.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ydb/library/workload/log/log.cpp b/ydb/library/workload/log/log.cpp index 2852a85afaa1..4f6c214972fe 100644 --- a/ydb/library/workload/log/log.cpp +++ b/ydb/library/workload/log/log.cpp @@ -50,12 +50,9 @@ std::string TLogGenerator::GetDDLQueries() const { } ss << "PRIMARY KEY("; - ss << "ts, "; + ss << "ts"; for (size_t i = 1; i < Params.KeyColumnsCnt; ++i) { - ss << "c" << i; - if (i + 1 < Params.KeyColumnsCnt) { - ss << ", "; - } + ss << ", c" << i; } ss << ")) WITH (";