-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-8695][CORE][MLlib] TreeAggregation shouldn't be triggered when it doesn't save wall-clock time. #7397
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
|
This needs a proper title and description. |
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.
Doesn't this fix the issue mentioned in SPARK-8695?
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.
Yeah, @mengxr was your intent to add the condition numPartitions > 5?
Also, I don't think you need to change the current condition; it's fine. (BTW .toDouble is a better idiom for casting than 1.0 *)
|
@piganesh When you open a PR, you should put a proper title and description. See also https://cwiki.apache.org/confluence/display/SPARK/Contributing+to+Spark |
|
Sean I did generate a new patch based on mengxr 's comment Namely while (numPartitions > scale + math.ceil(1.0 * numPartitions / scale)) and submitted a pull request .. thanks
|
|
@piganesh ... yes, that's this one. I've added a review comment last week, which you should act on. |
|
I had made the changes to use ceiling instead of the hard coded greater I need to check why you are not able to view the change. Give me a day. thanks From: Sean Owen [email protected] @piganesh ... yes, that's this one. I've added a review comment last week, |
|
OK I understood now. You had a comment on top to use .toDouble. Shall get to it ASAP. Sorry for the confusion. |
… it doesn't save wall-clock time.
|
Submitting a new pull request |
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.
LGTM except the parens around (numPartitions) aren't needed. That's trivial though.
|
OK to test |
|
Test build #1148 has finished for PR 7397 at commit
|
|
retest this please. |
|
Test build #37956 has finished for PR 7397 at commit
|
|
Since this is taking a while to finish relative to the tiny change, I made this last change myself and merged to master. |
No description provided.