code: func MockTableFromMeta(tblInfo *model.TableInfo) table.Table {
  	columns := make([]*table.Column, 0, len(tblInfo.Columns))
  	for _, colInfo := range tblInfo.Columns {
  		col := table.ToColumn(colInfo)
  		columns = append(columns, col)
  	}
  
  	var t Table
  	initTableCommon(&t.tableCommon, tblInfo, tblInfo.ID, columns, nil)
  	if tblInfo.GetPartitionInfo() == nil {
  		if err := initTableIndices(&t.tableCommon); err != nil {
  			return nil
  		}
  		return &t
  	}
  
  	ret, err := newPartitionedTable(&t, tblInfo)
  	if err != nil {
  		return nil
  	}
  	return ret
  }
docs: // MockTableFromMeta only serves for test.