aboutsummaryrefslogtreecommitdiff
path: root/sql/core
diff options
context:
space:
mode:
authorReynold Xin <rxin@databricks.com>2015-06-30 16:54:51 -0700
committerDavies Liu <davies@databricks.com>2015-06-30 16:54:51 -0700
commit8133125ca0b83985e0c2aa2a6ad477556867e412 (patch)
tree9c60e376ec57452de0551689345566d1e98e4956 /sql/core
parent8d23587f1d285e93983b4b7d1decea01c2fe2e9e (diff)
downloadspark-8133125ca0b83985e0c2aa2a6ad477556867e412.tar.gz
spark-8133125ca0b83985e0c2aa2a6ad477556867e412.tar.bz2
spark-8133125ca0b83985e0c2aa2a6ad477556867e412.zip
[SPARK-8741] [SQL] Remove e and pi from DataFrame functions.
Author: Reynold Xin <rxin@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.
Diffstat (limited to 'sql/core')
-rw-r--r--sql/core/src/main/scala/org/apache/spark/sql/functions.scala18
-rw-r--r--sql/core/src/test/scala/org/apache/spark/sql/DataFrameFunctionsSuite.scala8
2 files changed, 0 insertions, 26 deletions
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 6331fe6105..5767668dd3 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
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 11a8767ead..7ae89bcb1b 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)
)