You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by da...@apache.org on 2015/07/01 01:54:58 UTC

spark git commit: [SPARK-8741] [SQL] Remove e and pi from DataFrame functions.

Repository: spark
Updated Branches:
  refs/heads/master 8d23587f1 -> 8133125ca


[SPARK-8741] [SQL] Remove e and pi from DataFrame functions.

Author: Reynold Xin <rx...@databricks.com>

Closes #7137 from rxin/SPARK-8741 and squashes the following commits:

32c7e75 [Reynold Xin] [SPARK-8741][SQL] Remove e and pi from DataFrame functions.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/8133125c
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/8133125c
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/8133125c

Branch: refs/heads/master
Commit: 8133125ca0b83985e0c2aa2a6ad477556867e412
Parents: 8d23587
Author: Reynold Xin <rx...@databricks.com>
Authored: Tue Jun 30 16:54:51 2015 -0700
Committer: Davies Liu <da...@databricks.com>
Committed: Tue Jun 30 16:54:51 2015 -0700

----------------------------------------------------------------------
 .../scala/org/apache/spark/sql/functions.scala    | 18 ------------------
 .../spark/sql/DataFrameFunctionsSuite.scala       |  8 --------
 2 files changed, 26 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/8133125c/sql/core/src/main/scala/org/apache/spark/sql/functions.scala
----------------------------------------------------------------------
diff --git a/sql/core/src/main/scala/org/apache/spark/sql/functions.scala b/sql/core/src/main/scala/org/apache/spark/sql/functions.scala
index 6331fe6..5767668 100644
--- a/sql/core/src/main/scala/org/apache/spark/sql/functions.scala
+++ b/sql/core/src/main/scala/org/apache/spark/sql/functions.scala
@@ -990,15 +990,6 @@ object functions {
   def cosh(columnName: String): Column = cosh(Column(columnName))
 
   /**
-   * Returns the double value that is closer than any other to e, the base of the natural
-   * logarithms.
-   *
-   * @group math_funcs
-   * @since 1.5.0
-   */
-  def e(): Column = EulerNumber()
-
-  /**
    * Computes the exponential of the given value.
    *
    * @group math_funcs
@@ -1192,15 +1183,6 @@ object functions {
   def log1p(columnName: String): Column = log1p(Column(columnName))
 
   /**
-   * Returns the double value that is closer than any other to pi, the ratio of the circumference
-   * of a circle to its diameter.
-   *
-   * @group math_funcs
-   * @since 1.5.0
-   */
-  def pi(): Column = Pi()
-
-  /**
    * Computes the logarithm of the given column in base 2.
    *
    * @group math_funcs

http://git-wip-us.apache.org/repos/asf/spark/blob/8133125c/sql/core/src/test/scala/org/apache/spark/sql/DataFrameFunctionsSuite.scala
----------------------------------------------------------------------
diff --git a/sql/core/src/test/scala/org/apache/spark/sql/DataFrameFunctionsSuite.scala b/sql/core/src/test/scala/org/apache/spark/sql/DataFrameFunctionsSuite.scala
index 11a8767..7ae89bc 100644
--- a/sql/core/src/test/scala/org/apache/spark/sql/DataFrameFunctionsSuite.scala
+++ b/sql/core/src/test/scala/org/apache/spark/sql/DataFrameFunctionsSuite.scala
@@ -87,14 +87,6 @@ class DataFrameFunctionsSuite extends QueryTest {
 
   test("constant functions") {
     checkAnswer(
-      testData2.select(e()).limit(1),
-      Row(scala.math.E)
-    )
-    checkAnswer(
-      testData2.select(pi()).limit(1),
-      Row(scala.math.Pi)
-    )
-    checkAnswer(
       ctx.sql("SELECT E()"),
       Row(scala.math.E)
     )


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org