private Table createUnpartitionedTableObject(Database db) {
    String dbName = db.getName();
    String owner = db.getName();
    String serdeLocation = "file:/tmp";
    Map<String, String> serdeParams = new HashMap<>();
    Map<String, String> tblParams = new HashMap<>();
    SerDeInfo serdeInfo = new SerDeInfo("serde", "seriallib", new HashMap<>());
    FieldSchema col1 = new FieldSchema("col1", "binary", "binary column");
    FieldSchema col2 = new FieldSchema("col2", "boolean", "boolean column");
    FieldSchema col3 = new FieldSchema("col3", "date", "date column");
    FieldSchema col4 = new FieldSchema("col4", "decimal", "decimal column");
    FieldSchema col5 = new FieldSchema("col5", "double", "double column");
    FieldSchema col6 = new FieldSchema("col6", "float", "float column");
    FieldSchema col7 = new FieldSchema("col7", "int", "int column");
    FieldSchema col8 = new FieldSchema("col8", "string", "string column");
    List<FieldSchema> cols = Arrays.asList(col1, col2, col3, col4, col5, col6, col7, col8);
    StorageDescriptor sd =
        new StorageDescriptor(cols, serdeLocation, "input", "output", false, 0, serdeInfo, null, null, serdeParams);
    sd.setStoredAsSubDirectories(false);
    Table tbl = new Table(dbName + "_unptntbl1", dbName, owner, 0, 0, 0, sd, new ArrayList<>(), tblParams, null, null,
        TableType.MANAGED_TABLE.toString());
    tbl.setCatName(DEFAULT_CATALOG_NAME);
    tbl.setWriteId(0);
    return tbl;
  }
Create an unpartitoned table object for the given db.
The table has 9 types of columns
@param db the database for which the unpartitioned table is created
@return the unpartitioned table just created
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/cache/TestCachedStore.java