From 69cef2471d558b8ec0e2b9014b4d402489893112 Mon Sep 17 00:00:00 2001 From: Henrik Johansson Date: Thu, 13 Jun 2019 12:16:51 +0200 Subject: [PATCH] schema: max tuple parts incresed to 20 --- types.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/types.go b/types.go index 3ac00ba3..28d0862d 100644 --- a/types.go +++ b/types.go @@ -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. @@ -530,7 +531,7 @@ func genSimpleType() SimpleType { } func genTupleType() Type { - n := rand.Intn(5) + n := rand.Intn(MaxTupleParts) if n < 2 { n = 2 }