Skip to content

Commit f9340ed

Browse files
committed
update
1 parent 7367308 commit f9340ed

File tree

12 files changed

+387
-159
lines changed

12 files changed

+387
-159
lines changed

pkg/executor/builder.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -503,23 +503,23 @@ func buildIndexLookUpChecker(b *executorBuilder, p *plannercore.PhysicalIndexLoo
503503
}
504504

505505
func (b *executorBuilder) buildCheckTable(v *plannercore.CheckTable) exec.Executor {
506-
noMVIndexOrPrefixIndexOrColumnarIndex := true
506+
noPrefixIndexOrColumnarIndex := true
507507
for _, idx := range v.IndexInfos {
508-
if idx.MVIndex || idx.IsColumnarIndex() {
509-
noMVIndexOrPrefixIndexOrColumnarIndex = false
508+
if idx.IsColumnarIndex() {
509+
noPrefixIndexOrColumnarIndex = false
510510
break
511511
}
512512
for _, col := range idx.Columns {
513513
if col.Length != types.UnspecifiedLength {
514-
noMVIndexOrPrefixIndexOrColumnarIndex = false
514+
noPrefixIndexOrColumnarIndex = false
515515
break
516516
}
517517
}
518-
if !noMVIndexOrPrefixIndexOrColumnarIndex {
518+
if !noPrefixIndexOrColumnarIndex {
519519
break
520520
}
521521
}
522-
if b.ctx.GetSessionVars().FastCheckTable && noMVIndexOrPrefixIndexOrColumnarIndex {
522+
if b.ctx.GetSessionVars().FastCheckTable && noPrefixIndexOrColumnarIndex {
523523
e := &FastCheckTableExec{
524524
BaseExecutor: exec.NewBaseExecutor(b.ctx, v.Schema(), v.ID()),
525525
dbName: v.DBName,

0 commit comments

Comments
 (0)