-
Notifications
You must be signed in to change notification settings - Fork 28.9k
SPARK-6993 : Add default min, max methods for JavaDoubleRDD #5571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need this and the project doesn't depend directly on commons-collections anyway IIRC.
|
I removed the bad import - it was a typo |
|
I've taken your reviews into account. |
|
ok to test |
|
Test build #30517 has finished for PR 5571 at commit
|
|
Seems like the precision for float is needed in the test. |
|
No, just assert that == is true. Looks like the framework actually rejects use of this method? It didn't say it didn't equal, weirdly |
The default method will use Guava's Ordering instead of java.util.Comparator.naturalOrder() because it's not available in Java 7, only in Java 8.
|
I pushed the modifications, |
|
Test build #30519 has finished for PR 5571 at commit
|
|
Test build #30521 has finished for PR 5571 at commit
|
|
LGTM. Though I imagine this is not controversial, I would love to get a nod from @JoshRosen or @pwendell or @rxin as it offers a new API method. |
|
of course, have a nice weekend :) |
|
LGTM. Merging in master. |
The default method will use Guava's Ordering instead of
java.util.Comparator.naturalOrder() because it's not available
in Java 7, only in Java 8.