public Path getDefaultTablePath(String dbName, String tableName, boolean isExternal) throws MetaException {
    Path dbPath = null;
    if (isExternal && hasExternalWarehouseRoot()) {
      dbPath = getDefaultExternalDatabasePath(dbName);
    } else {
      dbPath = getDefaultDatabasePath(dbName);
    }
    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