From 305ac63139814cb58a89846bde0d9dbbb2fdf71d Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Tue, 12 Feb 2019 15:06:22 +0200 Subject: [PATCH] schema: More partition key types --- schema.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema.go b/schema.go index 77075aa4..f04a3088 100644 --- a/schema.go +++ b/schema.go @@ -99,7 +99,7 @@ func GenSchema() *Schema { partitionKeys := []ColumnDef{} numPartitionKeys := rand.Intn(MaxPartitionKeys-1) + 1 for i := 0; i < numPartitionKeys; i++ { - partitionKeys = append(partitionKeys, ColumnDef{Name: genColumnName("pk", i), Type: "int"}) + partitionKeys = append(partitionKeys, ColumnDef{Name: genColumnName("pk", i), Type: genColumnType()}) } clusteringKeys := []ColumnDef{} numClusteringKeys := rand.Intn(MaxClusteringKeys)