Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-24408][SQL][DOC] Move abs function to math_funcs group #21448

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions sql/core/src/main/scala/org/apache/spark/sql/functions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1031,14 +1031,6 @@ object functions {
// Non-aggregate functions
//////////////////////////////////////////////////////////////////////////////////////////////

/**
* Computes the absolute value.
*
* @group normal_funcs
* @since 1.3.0
*/
def abs(e: Column): Column = withExpr { Abs(e.expr) }

/**
* Creates a new array column. The input columns must all have the same data type.
*
Expand Down Expand Up @@ -1325,7 +1317,7 @@ object functions {
}

/**
* Computes bitwise NOT.
* Computes bitwise NOT (~) of a number.
*
* @group normal_funcs
* @since 1.4.0
Expand Down Expand Up @@ -1353,6 +1345,14 @@ object functions {
// Math Functions
//////////////////////////////////////////////////////////////////////////////////////////////

/**
* Computes the absolute value of a numeric value.
*
* @group math_funcs
* @since 1.3.0
*/
def abs(e: Column): Column = withExpr { Abs(e.expr) }

/**
* @return inverse cosine of `e` in radians, as if computed by `java.lang.Math.acos`
*
Expand Down