public Path getDefaultManagedTablePath(Database db, String tableName) throws MetaException {
    Path dbPath = getDatabaseManagedPath(db);
    return getDnsPath(
        new Path(dbPath, MetaStoreUtils.encodeTableName(tableName.toLowerCase())));
  }
Returns the default location of the table path using the parent database's location
@param db Database where the table is created
@param tableName table name
@return
@throws MetaException
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/Warehouse.java