presto-raptor-legacy/src/main/java/io/prestosql/plugin/raptor/legacy/metadata/ShardDao.java/ShardDao/listActiveDistributions
class ShardDao:    @SqlQuery("SELECT distribution_id, distribution_name, column_types, bucket_count\n" +
            "FROM distributions\n" +
            "WHERE distribution_id IN (SELECT distribution_id FROM tables)")
    List<Distribution> listActiveDistributions();