From dd7f71fb430209e38d5c4645451fae90d7299f77 Mon Sep 17 00:00:00 2001 From: eddie lin Date: Tue, 14 Dec 2021 18:52:35 +0800 Subject: [PATCH] util/testkit/testkit.go: fix typo (#30638) --- util/testkit/testkit.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/util/testkit/testkit.go b/util/testkit/testkit.go index 4b1882849b1e8..e1f0542797c14 100644 --- a/util/testkit/testkit.go +++ b/util/testkit/testkit.go @@ -260,7 +260,7 @@ func (tk *TestKit) HasPlan(sql string, plan string, args ...interface{}) bool { return false } -func containGloabl(rs *Result) bool { +func containGlobal(rs *Result) bool { partitionNameCol := 2 for i := range rs.rows { if strings.Contains(rs.rows[i][partitionNameCol], "global") { @@ -272,13 +272,13 @@ func containGloabl(rs *Result) bool { // MustNoGlobalStats checks if there is no global stats. func (tk *TestKit) MustNoGlobalStats(table string) bool { - if containGloabl(tk.MustQuery("show stats_meta where table_name like '" + table + "'")) { + if containGlobal(tk.MustQuery("show stats_meta where table_name like '" + table + "'")) { return false } - if containGloabl(tk.MustQuery("show stats_buckets where table_name like '" + table + "'")) { + if containGlobal(tk.MustQuery("show stats_buckets where table_name like '" + table + "'")) { return false } - if containGloabl(tk.MustQuery("show stats_histograms where table_name like '" + table + "'")) { + if containGlobal(tk.MustQuery("show stats_histograms where table_name like '" + table + "'")) { return false } return true