Skip to content

Commit

Permalink
fmt and add test
Browse files Browse the repository at this point in the history
  • Loading branch information
time-and-fate authored and ti-chi-bot committed Jan 10, 2023
1 parent ce48c95 commit 33bfe58
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions statistics/selectivity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ func TestOutOfRangeEstimationAfterDelete(t *testing.T) {
require.Nil(t, h.Update(dom.InfoSchema()))
var (
input []string
output []struct{
SQL string
output []struct {
SQL string
Result []string
}
)
Expand Down Expand Up @@ -1069,9 +1069,9 @@ func TestGlobalStatsOutOfRangeEstimationAfterDelete(t *testing.T) {
})
testKit.MustQuery(input[i]).Check(testkit.Rows(output[i].Result...))
}
//testKit.MustExec("analyze table t partition p4 with 1 samplerate, 0 topn")
//require.Nil(t, h.Update(dom.InfoSchema()))
//for i := range input {
// testKit.MustQuery(input[i]).Check(testkit.Rows(output[i].Result...))
//}
testKit.MustExec("analyze table t partition p4 with 1 samplerate, 0 topn")
require.Nil(t, h.Update(dom.InfoSchema()))
for i := range input {
testKit.MustQuery(input[i]).Check(testkit.Rows(output[i].Result...))
}
}

0 comments on commit 33bfe58

Please sign in to comment.