diff --git a/pkg/executor/show.go b/pkg/executor/show.go index 8b3e9b1085204..fa752c3365219 100644 --- a/pkg/executor/show.go +++ b/pkg/executor/show.go @@ -618,6 +618,11 @@ func (e *ShowExec) fetchShowColumns(ctx context.Context) error { if err != nil { return errors.Trace(err) } + // we will fill the column type information later, so clone a new table here. + tb, err = table.TableFromMeta(tb.Allocators(e.Ctx().GetTableCtx()), tb.Meta().Clone()) + if err != nil { + return errors.Trace(err) + } var ( fieldPatternsLike collate.WildcardPattern fieldFilter string