diff --git a/pkg/internal/sqlsmith/setup.go b/pkg/internal/sqlsmith/setup.go index 9d6ddb0a61e6..064d6ec954ee 100644 --- a/pkg/internal/sqlsmith/setup.go +++ b/pkg/internal/sqlsmith/setup.go @@ -70,8 +70,13 @@ func randTables(r *rand.Rand) string { stmts := rowenc.RandCreateTables(r, "table", r.Intn(5)+1, mutations.ForeignKeyMutator, mutations.StatisticsMutator, - mutations.PartialIndexMutator, + // TODO(mgartner): Re-enable the partial index mutator once it is aware + // that it should not mutate unique indexes on foreign key references. + // mutations.PartialIndexMutator, ) + // Satisfy the linter's desire to have mutations.PartialIndexMutator be + // used. + var _ = mutations.PartialIndexMutator for _, stmt := range stmts { sb.WriteString(tree.SerializeForDisplay(stmt))