Skip to content

Commit 82d426e

Browse files
committed
add function entry
1 parent dbf3ab5 commit 82d426e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

sql/core/src/main/scala/org/apache/spark/sql/functions.scala

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,14 @@ object functions {
944944
*/
945945
def cosh(columnName: String): Column = cosh(Column(columnName))
946946

947+
/**
948+
* Returns the value of the e.
949+
*
950+
* @group math_funcs
951+
* @since 1.5.0
952+
*/
953+
def e(): Column = E()
954+
947955
/**
948956
* Computes the exponential of the given value.
949957
*
@@ -1105,6 +1113,14 @@ object functions {
11051113
*/
11061114
def log1p(columnName: String): Column = log1p(Column(columnName))
11071115

1116+
/**
1117+
* Returns the value of the pi.
1118+
*
1119+
* @group math_funcs
1120+
* @since 1.5.0
1121+
*/
1122+
def pi(): Column = Pi()
1123+
11081124
/**
11091125
* Returns the value of the first argument raised to the power of the second argument.
11101126
*

0 commit comments

Comments
 (0)