presto-hive/src/main/java/io/prestosql/plugin/hive/metastore/MetastoreUtil.java/MetastoreUtil/getPartitionLocation
class MetastoreUtil:    public static String getPartitionLocation(Table table, Optional<Partition> partition)
    {
        if (!partition.isPresent()) {
            return table.getStorage().getLocation();
        }
        return partition.get().getStorage().getLocation();
    }