Skip to content

Commit

Permalink
Fix log workload for one key column
Browse files Browse the repository at this point in the history
  • Loading branch information
maximyurchuk committed Jan 16, 2025
1 parent 41e21f4 commit 602e434
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ydb/library/workload/log/log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 (";

Expand Down

0 comments on commit 602e434

Please sign in to comment.