diff options
Diffstat (limited to 'sql')
-rw-r--r-- | sql/core/src/main/scala/org/apache/spark/sql/functions.scala | 18 | ||||
-rw-r--r-- | sql/core/src/test/scala/org/apache/spark/sql/DataFrameFunctionsSuite.scala | 8 |
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) ) |