Skip to content

Commit

Permalink
Fix log workload for one key column (#13423)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximyurchuk authored Jan 16, 2025
1 parent 439d011 commit 3c12dfd
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 3c12dfd

Please sign in to comment.