Skip to content

Commit

Permalink
Merge pull request #129014 from mgartner/backport23.1-128988
Browse files Browse the repository at this point in the history
release-23.1: sql/randgen: do not generate expressions of type FLOAT4 (#129014)
  • Loading branch information
rytaft authored Aug 16, 2024
2 parents d08df82 + 26b3b2f commit 3cfca53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/sql/randgen/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
var (
// SeedTypes includes the following types that form the basis of randomly
// generated types:
// - All scalar types, except UNKNOWN and ANY
// - All scalar types, except UNKNOWN, ANY, REGNAMESPACE, and FLOAT4
// - ARRAY of ANY, where the ANY will be replaced with one of the legal
// array element types in RandType
// - OIDVECTOR and INT2VECTOR types
Expand All @@ -46,6 +46,9 @@ func init() {
// https://github.com/cockroachdb/cockroach/issues/55791 is fixed.
case oid.T_unknown, oid.T_anyelement:
// Don't include these.
case oid.T_float4:
// Don't include FLOAT4 due to known bugs that cause test failures.
// See #73743 and #48613.
case oid.T_anyarray, oid.T_oidvector, oid.T_int2vector:
// Include these.
SeedTypes = append(SeedTypes, typ)
Expand Down

0 comments on commit 3cfca53

Please sign in to comment.