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