Skip to content

Conversation

@adrian-wang
Copy link
Contributor

No description provided.

@SparkQA
Copy link

SparkQA commented Jun 9, 2015

Test build #34493 has finished for PR 6716 at commit 6fa757e.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • abstract class LeafMathExpression(c: Double, name: String)
    • case class E() extends LeafMathExpression(math.E, "E")
    • case class Pi() extends LeafMathExpression(math.Pi, "PI")

@SparkQA
Copy link

SparkQA commented Jun 9, 2015

Test build #34501 has finished for PR 6716 at commit e6783ef.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • abstract class LeafMathExpression(c: Double, name: String)
    • case class E() extends LeafMathExpression(math.E, "E")
    • case class Pi() extends LeafMathExpression(math.Pi, "PI")

@SparkQA
Copy link

SparkQA commented Jun 9, 2015

Test build #34498 timed out for PR 6716 at commit 00f6b59 after a configured wait of 175m.

Copy link
Contributor

Choose a reason for hiding this comment

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

Why not just use the java.math definition, i.e.

The double value that is closer than any other to e, the base of the natural logarithms.

@rxin
Copy link
Contributor

rxin commented Jun 9, 2015

Can you also add the Python version? Thanks.

Copy link
Contributor

Choose a reason for hiding this comment

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

why not just ...

 ${ctx.javaType(dataType)} ${ev.primitive} = java.lang.Math.$constName;

@SparkQA
Copy link

SparkQA commented Jun 10, 2015

Test build #34560 has finished for PR 6716 at commit 599ddd8.

  • This patch fails Python style tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • abstract class LeafMathExpression(c: Double, name: String)
    • case class E() extends LeafMathExpression(math.E, "E")
    • case class Pi() extends LeafMathExpression(math.Pi, "PI")

Copy link
Contributor

Choose a reason for hiding this comment

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

i don't think u need this, since you explicitly defined it. you might need to add it to all at the top of the file

Copy link
Contributor

Choose a reason for hiding this comment

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

let's be consistent with @chenghao-intel's length pr, and move this test into DataFrameFunctionSuite.scala.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK. Anyway, I think it looks weird to test sql() in DataFrameFunctionsSuite.

@rxin
Copy link
Contributor

rxin commented Jun 10, 2015

LGTM.

@SparkQA
Copy link

SparkQA commented Jun 10, 2015

Test build #34562 has finished for PR 6716 at commit db331c9.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • abstract class LeafMathExpression(c: Double, name: String)
    • case class E() extends LeafMathExpression(math.E, "E")
    • case class Pi() extends LeafMathExpression(math.Pi, "PI")

@rxin
Copy link
Contributor

rxin commented Jun 10, 2015

Jenkins, retest this please.

@rxin
Copy link
Contributor

rxin commented Jun 10, 2015

(want to test with this HiveContext also switching to using udfs here)

@SparkQA
Copy link

SparkQA commented Jun 10, 2015

Test build #34567 has finished for PR 6716 at commit 11b351c.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • abstract class LeafMathExpression(c: Double, name: String)
    • case class EulerNumber() extends LeafMathExpression(math.E, "E")
    • case class Pi() extends LeafMathExpression(math.Pi, "PI")

@SparkQA
Copy link

SparkQA commented Jun 10, 2015

Test build #34576 has finished for PR 6716 at commit e2e8dbd.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • abstract class LeafMathExpression(c: Double, name: String)
    • case class EulerNumber() extends LeafMathExpression(math.E, "E")
    • case class Pi() extends LeafMathExpression(math.Pi, "PI")

@SparkQA
Copy link

SparkQA commented Jun 10, 2015

Test build #34582 has finished for PR 6716 at commit e2e8dbd.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • abstract class LeafMathExpression(c: Double, name: String)
    • case class EulerNumber() extends LeafMathExpression(math.E, "E")
    • case class Pi() extends LeafMathExpression(math.Pi, "PI")

@rxin
Copy link
Contributor

rxin commented Jun 10, 2015

Thanks. I've merged this.

@asfgit asfgit closed this in c6ba7cc Jun 10, 2015
nemccarthy pushed a commit to nemccarthy/spark that referenced this pull request Jun 19, 2015
Author: Daoyuan Wang <[email protected]>

Closes apache#6716 from adrian-wang/epi and squashes the following commits:

e2e8dbd [Daoyuan Wang] move tests
11b351c [Daoyuan Wang] add tests and remove pu
db331c9 [Daoyuan Wang] py style
599ddd8 [Daoyuan Wang] add py
e6783ef [Daoyuan Wang] register function
82d426e [Daoyuan Wang] add function entry
dbf3ab5 [Daoyuan Wang] add PI and E
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.

3 participants