Github user mateiz commented on the pull request: https://github.com/apache/spark/pull/144#issuecomment-37679298 It might be better to implement `RDD.min` and `RDD.max` with `reduce` directly instead of building a whole StatCounter for them. Also, can you add these to the Java/Scala StatCounter too, and to the RDD there? For those we might want the `min` and `max` methods to take an Ordering in Scala, or a Comparator in Java (look at how `takeOrdered` works).
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---