code: func BuildTableInfoFromAST(s *ast.CreateTableStmt) (*model.TableInfo, error) {
  	return buildTableInfoWithCheck(mock.NewContext(), nil, s, mysql.DefaultCharset)
  }
docs: // BuildTableInfoFromAST builds model.TableInfo from a SQL statement.
  // The SQL string should be a create table statement.
  // Don't use this function to build a partitioned table.