presto-main/src/main/java/io/prestosql/operator/RowNumberOperator.java/RowNumberOperator/isSinglePartition
class RowNumberOperator:    private boolean isSinglePartition()
    {
        return !groupByHash.isPresent();
    }