presto-main/src/main/java/io/prestosql/operator/MarkDistinctOperator.java/MarkDistinctOperator/hasUnfinishedInput
class MarkDistinctOperator:    private boolean hasUnfinishedInput()
    {
        return inputPage != null || unfinishedWork != null;
    }