Skip to content

Conversation

@sabhyankar
Copy link

No description provided.

@mengxr
Copy link
Contributor

mengxr commented Jul 28, 2015

ok to test

@mengxr
Copy link
Contributor

mengxr commented Jul 28, 2015

@MechCoder Could you help review this PR? Thanks!

@SparkQA
Copy link

SparkQA commented Jul 28, 2015

Test build #38755 has finished for PR 7729 at commit 2e5ebd6.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure that a sealed trait should be tagged?

@sabhyankar
Copy link
Author

@MechCoder Thanks for pointing that out. I agree that the tag might not be necessary for the sealed trait. Let me know if you come across anything else.

@SparkQA
Copy link

SparkQA commented Aug 1, 2015

Test build #39377 has finished for PR 7729 at commit 3be09e9.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that these methods were added to the DenseMatrix object in 1.3.0 right?

@MechCoder
Copy link
Contributor

Thanks for the PR. I'm also not sure if tags should be added for hashcode, equals etc since the user is not going to access these features through the documentation.

@sabhyankar
Copy link
Author

@MechCoder thank you for the very detailed review! I have made most of the changes that you had pointed out except for the following:

  • I left the tags on the alternative constructor for the public classes as I thought it would be useful to know when it was introduced.
  • I left the tag in the DistributedMatrix as it is not a sealed trait and would be accessible.

In addition to the above:

  • I removed the tags from the hashCode and equals methods based on your comment. The only exception is the toString method in the DenseVector and SparseVector classes.

Let me know if you spot something else. Thanks again.

@SparkQA
Copy link

SparkQA commented Aug 4, 2015

Test build #39634 has finished for PR 7729 at commit 3012864.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@MechCoder
Copy link
Contributor

I left the tags on the alternative constructor for the public classes.

Then could you make the tags availble for all the alternative constructors. eg. DenseMatrix

@sabhyankar
Copy link
Author

@MechCoder I couldnt find the untagged alternate constructor in DenseMatrix. Can you point me to where you see it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ping

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @MechCoder I sincerely apologize for my ignorance here! I am a little new to Scala and am not sure what I am missing here. I will be happy to fix it if you can provide some clarification. I have fixed the other errors that you identified below and will update the PR.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh never mind, I could notice that from the diff view :( . Looks all right to me.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:) Thanks!

@MechCoder
Copy link
Contributor

That's it apart from those couple of comments.

@mengxr
Copy link
Contributor

mengxr commented Aug 11, 2015

We don't need to add since tags for methods inherited from Java Object like toString, hashCode, and equals. @sabhyankar Could you address @MechCoder 's comments? We should merge this before the 1.5 RC release.

@sabhyankar
Copy link
Author

I am going to take a look at this and update the PR by tomorrow.

@mengxr
Copy link
Contributor

mengxr commented Aug 14, 2015

test this please

@mengxr
Copy link
Contributor

mengxr commented Aug 14, 2015

@MechCoder Could you make another pass? Thanks!

@sabhyankar
Copy link
Author

I removed the tags from two of the toString method and confirmed left the tags in place for the alternate constructors as mechcoder mentioned.

@SparkQA
Copy link

SparkQA commented Aug 14, 2015

Test build #40905 has finished for PR 7729 at commit 09aad77.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be 1.2.0?

@MechCoder
Copy link
Contributor

LGTM @mengxr

@SparkQA
Copy link

SparkQA commented Aug 17, 2015

Test build #41019 has finished for PR 7729 at commit 68b3ed9.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

asfgit pushed a commit that referenced this pull request Aug 17, 2015
Author: Sameer Abhyankar <[email protected]>
Author: Sameer Abhyankar <[email protected]>

Closes #7729 from sabhyankar/branch_8920.

(cherry picked from commit 088b11e)
Signed-off-by: Xiangrui Meng <[email protected]>
@mengxr
Copy link
Contributor

mengxr commented Aug 17, 2015

Merged into master and branch-1.5. Thanks @sabhyankar for adding versions and @MechCoder for code review!

@asfgit asfgit closed this in 088b11e Aug 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants