Skip to content

Commit

Permalink
Merge pull request #44 from scylladb/int-partition-keys
Browse files Browse the repository at this point in the history
schema: Restrict partition key type to int
  • Loading branch information
Henrik Johansson authored Mar 26, 2019
2 parents 2bfd062 + 0f8e0dc commit 5ab4b1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func GenSchema() *Schema {
var partitionKeys []ColumnDef
numPartitionKeys := rand.Intn(MaxPartitionKeys-1) + 1
for i := 0; i < numPartitionKeys; i++ {
partitionKeys = append(partitionKeys, ColumnDef{Name: genColumnName("pk", i), Type: genColumnType()})
partitionKeys = append(partitionKeys, ColumnDef{Name: genColumnName("pk", i), Type: "int"})
}
var clusteringKeys []ColumnDef
numClusteringKeys := rand.Intn(MaxClusteringKeys)
Expand Down

0 comments on commit 5ab4b1f

Please sign in to comment.