Skip to content

Commit 3c12dfd

Browse files
authored
Fix log workload for one key column (#13423)
1 parent 439d011 commit 3c12dfd

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ydb/library/workload/log/log.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,9 @@ std::string TLogGenerator::GetDDLQueries() const {
5050
}
5151

5252
ss << "PRIMARY KEY(";
53-
ss << "ts, ";
53+
ss << "ts";
5454
for (size_t i = 1; i < Params.KeyColumnsCnt; ++i) {
55-
ss << "c" << i;
56-
if (i + 1 < Params.KeyColumnsCnt) {
57-
ss << ", ";
58-
}
55+
ss << ", c" << i;
5956
}
6057
ss << ")) WITH (";
6158

0 commit comments

Comments
 (0)