Skip to content

Commit

Permalink
Merge pull request #89467 from cockroachdb/blathers/backport-release-…
Browse files Browse the repository at this point in the history
…22.2.0-89449

release-22.2.0: roachtest: disable decimal columns in costfuzz and unoptimized tests (#89467)

Co-Authored-By: Rebecca Taft <[email protected]>
  • Loading branch information
rytaft authored Oct 7, 2022
2 parents 0da67ee + 73acd24 commit d71ff86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/internal/sqlsmith/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ func (s *Smither) pickAnyType(typ *types.T) *types.T {
if typ.ArrayContents().Family() == types.AnyFamily {
typ = randgen.RandArrayContentsType(s.rnd)
}
case types.DecimalFamily:
if s.disableDecimals {
typ = s.randType()
}
}
return typ
}
Expand Down

0 comments on commit d71ff86

Please sign in to comment.