presto-raptor-legacy/src/main/java/io/prestosql/plugin/raptor/legacy/metadata/H2ShardDao.java/H2ShardDao/deleteOldCompletedTransactions
class H2ShardDao:    @Override
    @SqlUpdate("DELETE FROM transactions\n" +
            "WHERE end_time < :maxEndTime\n" +
            "  AND successful IN (TRUE, FALSE)\n" +
            "  AND transaction_id NOT IN (SELECT transaction_id FROM created_shards)\n" +
            "LIMIT " + CLEANUP_TRANSACTIONS_BATCH_SIZE)
    int deleteOldCompletedTransactions(@Bind("maxEndTime") Timestamp maxEndTime);