From f6825b9cdd92469bc3d0719790bc45aeeb27ed21 Mon Sep 17 00:00:00 2001 From: hi-rustin Date: Mon, 1 Jul 2024 17:10:29 +0800 Subject: [PATCH] fix: refine typo --- pkg/executor/analyze_col.go | 4 ++-- pkg/executor/test/analyzetest/analyze_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/executor/analyze_col.go b/pkg/executor/analyze_col.go index 1abe6f09b3cfd..c1d1dc46770d2 100644 --- a/pkg/executor/analyze_col.go +++ b/pkg/executor/analyze_col.go @@ -422,9 +422,9 @@ func prepareIndexes(e *AnalyzeColumnsExec, b *strings.Builder) { } if len(indexes) < len(e.tableInfo.Indices) { if len(indexes) > 1 { - b.WriteString(" columns ") + b.WriteString(" indexes ") } else { - b.WriteString(" column ") + b.WriteString(" index ") } for i, index := range indexes { if i > 0 { diff --git a/pkg/executor/test/analyzetest/analyze_test.go b/pkg/executor/test/analyzetest/analyze_test.go index 5d7aa8b950284..7044272c36033 100644 --- a/pkg/executor/test/analyzetest/analyze_test.go +++ b/pkg/executor/test/analyzetest/analyze_test.go @@ -2775,7 +2775,7 @@ func TestAnalyzeColumnsSkipMVIndexJsonCol(t *testing.T) { tk.MustQuery("select job_info from mysql.analyze_jobs where table_schema = 'test' and table_name = 't'").Sort().Check( testkit.Rows( "analyze index idx_c", - "analyze table column idx_b, columns a, b with 256 buckets, 100 topn, 1 samplerate", + "analyze table index idx_b, columns a, b with 256 buckets, 100 topn, 1 samplerate", )) is := dom.InfoSchema()