Skip to content

Commit

Permalink
fix: refine typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustin170506 committed Jul 1, 2024
1 parent 18083dc commit f6825b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/executor/analyze_col.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/executor/test/analyzetest/analyze_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f6825b9

Please sign in to comment.