From 5598bdee8afc245d3fe5f49492d412a0ad29c255 Mon Sep 17 00:00:00 2001 From: Shawn Yan Date: Sun, 28 Apr 2024 12:13:27 +0800 Subject: [PATCH] infoschema: fix TABLE_ID size in TIFLASH_xxx (#48329) ref pingcap/tidb#48323 --- pkg/infoschema/tables.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/infoschema/tables.go b/pkg/infoschema/tables.go index ea41b291dea2a..79f22fa49f402 100644 --- a/pkg/infoschema/tables.go +++ b/pkg/infoschema/tables.go @@ -1407,7 +1407,7 @@ var tableTableTiFlashTablesCols = []columnInfo{ {name: "TABLE", tp: mysql.TypeVarchar, size: 64}, {name: "TIDB_DATABASE", tp: mysql.TypeVarchar, size: 64}, {name: "TIDB_TABLE", tp: mysql.TypeVarchar, size: 64}, - {name: "TABLE_ID", tp: mysql.TypeLonglong, size: 64}, + {name: "TABLE_ID", tp: mysql.TypeLonglong, size: 21}, {name: "IS_TOMBSTONE", tp: mysql.TypeLonglong, size: 64}, {name: "SEGMENT_COUNT", tp: mysql.TypeLonglong, size: 64}, {name: "TOTAL_ROWS", tp: mysql.TypeLonglong, size: 64}, @@ -1464,7 +1464,7 @@ var tableTableTiFlashSegmentsCols = []columnInfo{ {name: "TABLE", tp: mysql.TypeVarchar, size: 64}, {name: "TIDB_DATABASE", tp: mysql.TypeVarchar, size: 64}, {name: "TIDB_TABLE", tp: mysql.TypeVarchar, size: 64}, - {name: "TABLE_ID", tp: mysql.TypeLonglong, size: 64}, + {name: "TABLE_ID", tp: mysql.TypeLonglong, size: 21}, {name: "IS_TOMBSTONE", tp: mysql.TypeLonglong, size: 64}, {name: "SEGMENT_ID", tp: mysql.TypeLonglong, size: 64}, {name: "RANGE", tp: mysql.TypeVarchar, size: 64},