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