presto-main/src/main/java/io/prestosql/sql/planner/optimizations/WindowFilterPushDown.java/Rewriter/canReplaceWithRowNumber
class Rewriter:        private boolean canReplaceWithRowNumber(WindowNode node)
        {
            return canOptimizeWindowFunction(node) && !node.getOrderingScheme().isPresent();
        }