diff --git a/executor/partition_table_test.go b/executor/partition_table_test.go index 16ea8aab533f0..25c52e8c4954f 100644 --- a/executor/partition_table_test.go +++ b/executor/partition_table_test.go @@ -414,7 +414,7 @@ func (s *partitionTableSuite) TestBatchGetandPointGetwithHashPartition(c *C) { // select a from t where a={x}; // the result isĀ {x} x := rand.Intn(100) + 1 queryHash := fmt.Sprintf("select a from thash where a=%v", x) - queryRegular := fmt.Sprintf("select a from thash where a=%v", x) + queryRegular := fmt.Sprintf("select a from tregular where a=%v", x) c.Assert(tk.HasPlan(queryHash, "Point_Get"), IsTrue) // check if PointGet is used tk.MustQuery(queryHash).Check(tk.MustQuery(queryRegular).Rows()) }