Skip to content
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

[SPARK-16369][MLlib] tallSkinnyQR of RowMatrix should aware of empty partition #14049

Closed
wants to merge 3 commits into from

Conversation

yinxusen
Copy link
Contributor

@yinxusen yinxusen commented Jul 4, 2016

What changes were proposed in this pull request?

tallSkinnyQR of RowMatrix should aware of empty partition, which could cause exception from Breeze qr decomposition.

See the archived dev mail for more details.

How was this patch tested?

Scala unit test.

@SparkQA
Copy link

SparkQA commented Jul 4, 2016

Test build #61735 has finished for PR 14049 at commit 72991db.

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

partRows.foreach { row =>
bdm(i, ::) := row.asBreeze.t
i += 1
if (partRows.length == 0) {
Copy link
Member

Choose a reason for hiding this comment

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

Can you just flatMap this? so that you don't have to handle None below? or filter then map?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! I changed it to filter then map.

@SparkQA
Copy link

SparkQA commented Jul 5, 2016

Test build #61763 has finished for PR 14049 at commit f6c25d9.

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

@srowen
Copy link
Member

srowen commented Jul 7, 2016

@yinxusen if you resolve the conflicts I'll merge.

@SparkQA
Copy link

SparkQA commented Jul 7, 2016

Test build #61932 has finished for PR 14049 at commit 6705a38.

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

@yinxusen
Copy link
Contributor Author

yinxusen commented Jul 7, 2016

@srowen

@srowen
Copy link
Member

srowen commented Jul 8, 2016

Merged to master/2.0

asfgit pushed a commit that referenced this pull request Jul 8, 2016
…partition

## What changes were proposed in this pull request?

tallSkinnyQR of RowMatrix should aware of empty partition, which could cause exception from Breeze qr decomposition.

See the [archived dev mail](https://mail-archives.apache.org/mod_mbox/spark-dev/201510.mbox/%3CCAF7ADNrycvPL3qX-VZJhq4OYmiUUhoscut_tkOm63Cm18iK1tQmail.gmail.com%3E) for more details.

## How was this patch tested?

Scala unit test.

Author: Xusen Yin <yinxusen@gmail.com>

Closes #14049 from yinxusen/SPARK-16369.

(cherry picked from commit 255d74f)
Signed-off-by: Sean Owen <sowen@cloudera.com>
@asfgit asfgit closed this in 255d74f Jul 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants