Skip to content

Commit

Permalink
schema: max tuple parts incresed to 20
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrik Johansson committed Jun 13, 2019
1 parent 1608518 commit 69cef24
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ const (
TYPE_VARCHAR = SimpleType("varchar")
TYPE_VARINT = SimpleType("varint")

MaxUDTParts = 10
MaxTupleParts = 20
MaxUDTParts = 10
)

// TODO: Add support for time when gocql bug is fixed.
Expand Down Expand Up @@ -530,7 +531,7 @@ func genSimpleType() SimpleType {
}

func genTupleType() Type {
n := rand.Intn(5)
n := rand.Intn(MaxTupleParts)
if n < 2 {
n = 2
}
Expand Down

0 comments on commit 69cef24

Please sign in to comment.