Skip to content

Commit

Permalink
sql: enable partial inverted indexes in randomized tests
Browse files Browse the repository at this point in the history
Now that partial inverted indexes can be created, they can be generated
in randomized tests.

Release note: None
  • Loading branch information
mgartner committed Sep 17, 2020
1 parent cb3ecbc commit c47d293
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions pkg/sql/rowenc/testutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -1390,12 +1390,6 @@ func PartialIndexMutator(rng *rand.Rand, stmts []tree.Statement) ([]tree.Stateme
for _, stmt := range stmts {
switch ast := stmt.(type) {
case *tree.CreateIndex:
// TODO(mgartner): Create partial inverted indexes when they are
// fully supported.
if ast.Inverted {
continue
}

tableInfo, ok := tables[ast.Table.ObjectName]
if !ok {
continue
Expand Down Expand Up @@ -1424,9 +1418,7 @@ func PartialIndexMutator(rng *rand.Rand, stmts []tree.Statement) ([]tree.Stateme
}
}

// TODO(mgartner): Create partial inverted indexes when they are
// fully supported.
if idx == nil || idx.Inverted {
if idx == nil {
continue
}

Expand Down

0 comments on commit c47d293

Please sign in to comment.