Skip to content

[SPARK-17027][ML] Avoid integer overflow in PolynomialExpansion.getPolySize - #14614

Closed
zero323 wants to merge 2 commits into
apache:masterfrom
zero323:SPARK-17027
Closed

[SPARK-17027][ML] Avoid integer overflow in PolynomialExpansion.getPolySize#14614
zero323 wants to merge 2 commits into
apache:masterfrom
zero323:SPARK-17027

Conversation

@zero323

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

Replaces custom choose function with o.a.commons.math3.CombinatoricsUtils.binomialCoefficient

How was this patch tested?

Spark unit tests

@SparkQA

Copy link
Copy Markdown

Test build #63649 has finished for PR 14614 at commit 47170b8.

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

@srowen

Copy link
Copy Markdown
Member

LGTM

@srowen

Copy link
Copy Markdown
Member

@zero323 actually would you mind adding a quick test in PolynomialExpansionSuite that reflects the issue reported in the JIRA? just to verify the fix

@SparkQA

Copy link
Copy Markdown

Test build #63728 has finished for PR 14614 at commit afcee39.

  • This patch fails to build.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA

Copy link
Copy Markdown

Test build #63729 has finished for PR 14614 at commit efc95c5.

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

@zero323

Copy link
Copy Markdown
MemberAuthor

@srowen By all means. Here you are.

asfgit pushed a commit that referenced this pull request Aug 14, 2016
…lySize
## What changes were proposed in this pull request?
Replaces custom choose function with o.a.commons.math3.CombinatoricsUtils.binomialCoefficient
## How was this patch tested?
Spark unit tests
Author: zero323 <zero323@users.noreply.github.com>
Closes#14614 from zero323/SPARK-17027.
(cherry picked from commit 0ebf7c1)
Signed-off-by: Sean Owen <sowen@cloudera.com>
asfgit pushed a commit that referenced this pull request Aug 14, 2016
…lySize
Replaces custom choose function with o.a.commons.math3.CombinatoricsUtils.binomialCoefficient
Spark unit tests
Author: zero323 <zero323@users.noreply.github.com>
Closes#14614 from zero323/SPARK-17027.
(cherry picked from commit 0ebf7c1)
Signed-off-by: Sean Owen <sowen@cloudera.com>
@srowen

srowen commented Aug 14, 2016

Copy link
Copy Markdown
Member

Merged to master/2.0

zzcclp pushed a commit to zzcclp/spark that referenced this pull request Aug 15, 2016
…lySize
Replaces custom choose function with o.a.commons.math3.CombinatoricsUtils.binomialCoefficient
Spark unit tests
Author: zero323 <zero323@users.noreply.github.com>
Closesapache#14614 from zero323/SPARK-17027.
(cherry picked from commit 0ebf7c1)
Signed-off-by: Sean Owen <sowen@cloudera.com>
(cherry picked from commit b54a586)
@zero323
zero323 deleted the SPARK-17027 branch April 6, 2017 11:05
Sign up for freeto 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.

3 participants

@zero323@SparkQA@srowen