diff --git a/util/testkit/testkit.go b/util/testkit/testkit.go index c9063d626829c..758a284f0b007 100644 --- a/util/testkit/testkit.go +++ b/util/testkit/testkit.go @@ -266,7 +266,7 @@ func (tk *TestKit) MustPartition(sql string, partitions string, args ...interfac return false } -// MustPartition checks if the result execution plan must read specific partitions. +// UsedPartitions returns the partition names that will be used or all/dual. func (tk *TestKit) UsedPartitions(sql string, args ...interface{}) *Result { rs := tk.MustQuery("explain "+sql, args...) var usedPartitions [][]string