executor: tiny refactor code to improve CheckTableExec (#32295)
executor: tiny refactor code to improve CheckTableExec (#32295)

close pingcap/tidb#32294
kyle-wang/tidb,kyle-wang/tidb,c4pt0r/tidb,kyle-wang/tidb,c4pt0r/tidb,ngaut/tidb,kyle-wang/tidb,pingcap/tidb,ngaut/tidb,pingcap/tidb,ngaut/tidb,c4pt0r/tidb,kyle-wang/tidb,pingcap/tidb,ngaut/tidb,pingcap/tidb,pingcap/tidb,kyle-wang/tidb,ngaut/tidb,c4pt0r/tidb,pingcap/tidb,ngaut/tidb,c4pt0r/tidb,c4pt0r/tidb