Skip to content

Commit e1d3f80

Browse files
jaceklaskowskiholdenk
authored andcommitted
[SPARK-24408][SQL][DOC] Move abs function to math_funcs group
## What changes were proposed in this pull request? A few math functions (`abs` , `bitwiseNOT`, `isnan`, `nanvl`) are not in **math_funcs** group. They should really be. ## How was this patch tested? Awaiting Jenkins Author: Jacek Laskowski <[email protected]> Closes #21448 from jaceklaskowski/SPARK-24408-math-funcs-doc.
1 parent a95a4af commit e1d3f80

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,14 +1031,6 @@ object functions {
10311031
// Non-aggregate functions
10321032
//////////////////////////////////////////////////////////////////////////////////////////////
10331033

1034-
/**
1035-
* Computes the absolute value.
1036-
*
1037-
* @group normal_funcs
1038-
* @since 1.3.0
1039-
*/
1040-
def abs(e: Column): Column = withExpr { Abs(e.expr) }
1041-
10421034
/**
10431035
* Creates a new array column. The input columns must all have the same data type.
10441036
*
@@ -1336,7 +1328,7 @@ object functions {
13361328
}
13371329

13381330
/**
1339-
* Computes bitwise NOT.
1331+
* Computes bitwise NOT (~) of a number.
13401332
*
13411333
* @group normal_funcs
13421334
* @since 1.4.0
@@ -1364,6 +1356,14 @@ object functions {
13641356
// Math Functions
13651357
//////////////////////////////////////////////////////////////////////////////////////////////
13661358

1359+
/**
1360+
* Computes the absolute value of a numeric value.
1361+
*
1362+
* @group math_funcs
1363+
* @since 1.3.0
1364+
*/
1365+
def abs(e: Column): Column = withExpr { Abs(e.expr) }
1366+
13671367
/**
13681368
* @return inverse cosine of `e` in radians, as if computed by `java.lang.Math.acos`
13691369
*

0 commit comments

Comments
 (0)