presto-raptor-legacy/src/main/java/io/prestosql/plugin/raptor/legacy/metadata/MetadataDao.java/MetadataDao/isCompactionEligible
class MetadataDao:    @SqlQuery("SELECT compaction_enabled AND maintenance_blocked IS NULL\n" +
            "FROM tables\n" +
            "WHERE table_id = :tableId")
    boolean isCompactionEligible(@Bind("tableId") long tableId);