Skip to content

Commit c2fb006

Browse files
authored
Merge a0740fa into 5382ebc
2 parents 5382ebc + a0740fa commit c2fb006

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ydb/public/lib/ydb_cli/commands/click_bench.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ int TClickBenchCommandInit::Run(TConfig& config) {
419419
TString notNull = "";
420420
if (StoreType == "column") {
421421
//partitionBy = "PARTITION BY HASH(CounterID)"; Not enough cardinality in CounterID column @sa KIKIMR-16478
422-
partitionBy = "PARTITION BY HASH(EventTime)";
422+
partitionBy = "PARTITION BY HASH(CounterID, EventDate, UserID, EventTime, WatchID)";
423423
storageType = "STORE = COLUMN,";
424424
notNull = "NOT NULL";
425425
} else if (StoreType != "row") {

ydb/public/lib/ydb_cli/commands/click_bench_schema.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ CREATE TABLE `{table}`
107107
URLHash Int64 {notnull},
108108
CLID Int32 {notnull},
109109

110-
PRIMARY KEY (EventTime, CounterID, EventDate, UserID, WatchID)
110+
PRIMARY KEY (CounterID, EventDate, UserID, EventTime, WatchID)
111111
)
112112
{partition}
113113
WITH (

0 commit comments

Comments
 (0)