presto-main/src/main/java/io/prestosql/operator/TableWriterOperator.java/TableWriterOperator/isFinished
class TableWriterOperator:    @Override
    public boolean isFinished()
    {
        return state == State.FINISHED && blocked.isDone();
    }