-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-23329][SQL] Fix documentation of trigonometric functions #20618
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
Changes from 1 commit
0a0c4ae
168d7b3
2586b0f
8550a27
40da998
0e4e15a
fcf1338
2ea1f18
10afda5
627e204
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1313,47 +1313,47 @@ object functions { | |
| ////////////////////////////////////////////////////////////////////////////////////////////// | ||
|
|
||
| /** | ||
| * @return inverse cosine of `e` in radians, as if computed by [[java.lang.Math#acos]] | ||
| * @return inverse cosine of `e` in radians, as if computed by `java.lang.Math.acos` | ||
| * | ||
| * @group math_funcs | ||
| * @since 1.4.0 | ||
| */ | ||
| def acos(e: Column): Column = withExpr { Acos(e.expr) } | ||
|
|
||
| /** | ||
| * @return inverse cosine of `columnName`, as if computed by [[java.lang.Math#acos]] | ||
| * @return inverse cosine of `columnName`, as if computed by `java.lang.Math.acos` | ||
| * | ||
| * @group math_funcs | ||
| * @since 1.4.0 | ||
| */ | ||
| def acos(columnName: String): Column = acos(Column(columnName)) | ||
|
|
||
| /** | ||
| * @return inverse sine of `e` in radians, as if computed by [[java.lang.Math#asin]] | ||
| * @return inverse sine of `e` in radians, as if computed by `java.lang.Math.asin` | ||
| * | ||
| * @group math_funcs | ||
| * @since 1.4.0 | ||
| */ | ||
| def asin(e: Column): Column = withExpr { Asin(e.expr) } | ||
|
|
||
| /** | ||
| * @return inverse sine of `columnName`, as if computed by [[java.lang.Math#asin]] | ||
| * @return inverse sine of `columnName`, as if computed by `java.lang.Math.asin` | ||
| * | ||
| * @group math_funcs | ||
| * @since 1.4.0 | ||
| */ | ||
| def asin(columnName: String): Column = asin(Column(columnName)) | ||
|
|
||
| /** | ||
| * @return inverse tangent of `e`, as if computed by [[java.lang.Math#atan]] | ||
| * @return inverse tangent of `e`, as if computed by `java.lang.Math.atan` | ||
| * | ||
| * @group math_funcs | ||
| * @since 1.4.0 | ||
| */ | ||
| def atan(e: Column): Column = withExpr { Atan(e.expr) } | ||
|
|
||
| /** | ||
| * @return inverse tangent of `columnName`, as if computed by [[java.lang.Math#atan]] | ||
| * @return inverse tangent of `columnName`, as if computed by `java.lang.Math.atan` | ||
| * | ||
| * @group math_funcs | ||
| * @since 1.4.0 | ||
|
|
@@ -1364,10 +1364,10 @@ object functions { | |
| * @param y coordinate on y-axis | ||
| * @param x coordinate on x-axis | ||
| * @return the <i>theta</i> component of the point | ||
| * (<i>r</i>, <i>theta</i>) | ||
| * (<i>r</i>, <i>theta</i>) | ||
| * in polar coordinates that corresponds to the point | ||
| * (<i>x</i>, <i>y</i>) in Cartesian coordinates, | ||
| * as if computed by [[java.lang.Math#atan2]] | ||
| * (<i>x</i>, <i>y</i>) in Cartesian coordinates, | ||
| * as if computed by `java.lang.Math.atan2` | ||
| * | ||
| * @group math_funcs | ||
| * @since 1.4.0 | ||
|
|
@@ -1378,10 +1378,10 @@ object functions { | |
| * @param y coordinate on y-axis | ||
| * @param xName coordinate on x-axis | ||
| * @return the <i>theta</i> component of the point | ||
| * (<i>r</i>, <i>theta</i>) | ||
| * (<i>r</i>, <i>theta</i>) | ||
| * in polar coordinates that corresponds to the point | ||
| * (<i>x</i>, <i>y</i>) in Cartesian coordinates, | ||
| * as if computed by [[java.lang.Math#atan2]] | ||
| * (<i>x</i>, <i>y</i>) in Cartesian coordinates, | ||
| * as if computed by `java.lang.Math.atan2` | ||
| * | ||
| * @group math_funcs | ||
| * @since 1.4.0 | ||
|
|
@@ -1392,10 +1392,10 @@ object functions { | |
| * @param yName coordinate on y-axis | ||
| * @param x coordinate on x-axis | ||
| * @return the <i>theta</i> component of the point | ||
| * (<i>r</i>, <i>theta</i>) | ||
| * (<i>r</i>, <i>theta</i>) | ||
| * in polar coordinates that corresponds to the point | ||
| * (<i>x</i>, <i>y</i>) in Cartesian coordinates, | ||
| * as if computed by [[java.lang.Math#atan2]] | ||
| * (<i>x</i>, <i>y</i>) in Cartesian coordinates, | ||
| * as if computed by `java.lang.Math.atan2` | ||
| * | ||
| * @group math_funcs | ||
| * @since 1.4.0 | ||
|
|
@@ -1406,10 +1406,10 @@ object functions { | |
| * @param yName coordinate on y-axis | ||
| * @param xName coordinate on x-axis | ||
| * @return the <i>theta</i> component of the point | ||
| * (<i>r</i>, <i>theta</i>) | ||
| * (<i>r</i>, <i>theta</i>) | ||
| * in polar coordinates that corresponds to the point | ||
| * (<i>x</i>, <i>y</i>) in Cartesian coordinates, | ||
| * as if computed by [[java.lang.Math#atan2]] | ||
| * (<i>x</i>, <i>y</i>) in Cartesian coordinates, | ||
| * as if computed by `java.lang.Math.atan2` | ||
| * | ||
| * @group math_funcs | ||
| * @since 1.4.0 | ||
|
|
@@ -1421,10 +1421,10 @@ object functions { | |
| * @param y coordinate on y-axis | ||
| * @param xValue coordinate on x-axis | ||
| * @return the <i>theta</i> component of the point | ||
| * (<i>r</i>, <i>theta</i>) | ||
| * (<i>r</i>, <i>theta</i>) | ||
| * in polar coordinates that corresponds to the point | ||
| * (<i>x</i>, <i>y</i>) in Cartesian coordinates, | ||
| * as if computed by [[java.lang.Math#atan2]] | ||
| * (<i>x</i>, <i>y</i>) in Cartesian coordinates, | ||
| * as if computed by `java.lang.Math.atan2` | ||
| * | ||
| * @group math_funcs | ||
| * @since 1.4.0 | ||
|
|
@@ -1435,10 +1435,10 @@ object functions { | |
| * @param yName coordinate on y-axis | ||
| * @param xValue coordinate on x-axis | ||
| * @return the <i>theta</i> component of the point | ||
| * (<i>r</i>, <i>theta</i>) | ||
| * (<i>r</i>, <i>theta</i>) | ||
| * in polar coordinates that corresponds to the point | ||
| * (<i>x</i>, <i>y</i>) in Cartesian coordinates, | ||
| * as if computed by [[java.lang.Math#atan2]] | ||
| * (<i>x</i>, <i>y</i>) in Cartesian coordinates, | ||
| * as if computed by `java.lang.Math.atan2` | ||
| * | ||
| * @group math_funcs | ||
| * @since 1.4.0 | ||
|
|
@@ -1449,10 +1449,10 @@ object functions { | |
| * @param yValue coordinate on y-axis | ||
| * @param x coordinate on x-axis | ||
| * @return the <i>theta</i> component of the point | ||
| * (<i>r</i>, <i>theta</i>) | ||
| * (<i>r</i>, <i>theta</i>) | ||
| * in polar coordinates that corresponds to the point | ||
| * (<i>x</i>, <i>y</i>) in Cartesian coordinates, | ||
| * as if computed by [[java.lang.Math#atan2]] | ||
| * (<i>x</i>, <i>y</i>) in Cartesian coordinates, | ||
| * as if computed by `java.lang.Math.atan2` | ||
| * | ||
| * @group math_funcs | ||
| * @since 1.4.0 | ||
|
|
@@ -1463,10 +1463,10 @@ object functions { | |
| * @param yValue coordinate on y-axis | ||
| * @param xName coordinate on x-axis | ||
| * @return the <i>theta</i> component of the point | ||
| * (<i>r</i>, <i>theta</i>) | ||
| * (<i>r</i>, <i>theta</i>) | ||
| * in polar coordinates that corresponds to the point | ||
| * (<i>x</i>, <i>y</i>) in Cartesian coordinates, | ||
| * as if computed by [[java.lang.Math#atan2]] | ||
| * (<i>x</i>, <i>y</i>) in Cartesian coordinates, | ||
| * as if computed by `java.lang.Math.atan2` | ||
| * | ||
| * @group math_funcs | ||
| * @since 1.4.0 | ||
|
|
@@ -1535,7 +1535,7 @@ object functions { | |
|
|
||
| /** | ||
| * @param e angle in radians | ||
| * @return cosine of the angle, as if computed by [[java.lang.Math#cos]] | ||
| * @return cosine of the angle, as if computed by `java.lang.Math.cos` | ||
| * | ||
| * @group math_funcs | ||
| * @since 1.4.0 | ||
|
|
@@ -1544,7 +1544,7 @@ object functions { | |
|
|
||
| /** | ||
| * @param columnName angle in radians | ||
| * @return cosine of the angle, as if computed by [[java.lang.Math#cos]] | ||
| * @return cosine of the angle, as if computed by `java.lang.Math.cos` | ||
| * | ||
| * @group math_funcs | ||
| * @since 1.4.0 | ||
|
|
@@ -1553,7 +1553,7 @@ object functions { | |
|
|
||
| /** | ||
| * @param e hyperbolic angle | ||
| * @return hyperbolic cosine of the angle, as if computed by [[java.lang.Math#cosh]] | ||
| * @return hyperbolic cosine of the angle, as if computed by `java.lang.Math.cosh` | ||
| * | ||
| * @group math_funcs | ||
| * @since 1.4.0 | ||
|
|
@@ -1562,7 +1562,7 @@ object functions { | |
|
|
||
| /** | ||
| * @param columnName hyperbolic angle | ||
| * @return hyperbolic cosine of the angle, as if computed by [[java.lang.Math#cosh]] | ||
| * @return hyperbolic cosine of the angle, as if computed by `java.lang.Math.cosh` | ||
| * | ||
| * @group math_funcs | ||
| * @since 1.4.0 | ||
|
|
@@ -2006,7 +2006,7 @@ object functions { | |
|
|
||
| /** | ||
| * @param e angle in radians | ||
| * @return sine of the angle, as if computed by [[java.lang.Math#sin]] | ||
| * @return sine of the angle, as if computed by `java.lang.Math.sin` | ||
| * | ||
| * @group math_funcs | ||
| * @since 1.4.0 | ||
|
|
@@ -2015,7 +2015,7 @@ object functions { | |
|
|
||
| /** | ||
| * @param columnName angle in radians | ||
| * @return sine of the angle, as if computed by [[java.lang.Math#sin]] | ||
| * @return sine of the angle, as if computed by `java.lang.Math.sin` | ||
| * | ||
| * @group math_funcs | ||
| * @since 1.4.0 | ||
|
|
@@ -2024,7 +2024,7 @@ object functions { | |
|
|
||
| /** | ||
| * @param e hyperbolic angle | ||
| * @return hyperbolic sine of the given value, as if computed by [[java.lang.Math#sinh]] | ||
| * @return hyperbolic sine of the given value, as if computed by `java.lang.Math.sinh` | ||
| * | ||
| * @group math_funcs | ||
| * @since 1.4.0 | ||
|
|
@@ -2033,7 +2033,7 @@ object functions { | |
|
|
||
| /** | ||
| * @param columnName hyperbolic angle | ||
| * @return hyperbolic sine of the given value, as if computed by [[java.lang.Math#sinh]] | ||
| * @return hyperbolic sine of the given value, as if computed by `java.lang.Math.sinh` | ||
| * | ||
| * @group math_funcs | ||
| * @since 1.4.0 | ||
|
|
@@ -2042,7 +2042,7 @@ object functions { | |
|
|
||
| /** | ||
| * @param e angle in radians | ||
| * @return tangent of the given value, as if computed by [[java.lang.Math#tan]] | ||
| * @return tangent of the given value, as if computed by `java.lang.Math.tan` | ||
| * | ||
| * @group math_funcs | ||
| * @since 1.4.0 | ||
|
|
@@ -2051,7 +2051,7 @@ object functions { | |
|
|
||
| /** | ||
| * @param columnName angle in radians | ||
| * @return tangent of the given value, as if computed by [[java.lang.Math#tan]] | ||
| * @return tangent of the given value, as if computed by `java.lang.Math.tan` | ||
| * | ||
| * @group math_funcs | ||
| * @since 1.4.0 | ||
|
|
@@ -2060,7 +2060,7 @@ object functions { | |
|
|
||
| /** | ||
| * @param e hyperbolic angle | ||
| * @return hyperbolic tangent of the given value, as if computed by [[java.lang.Math#tanh]] | ||
|
||
| * @return hyperbolic tangent of the given value, as if computed by `java.lang.Math.tanh` | ||
| * | ||
| * @group math_funcs | ||
| * @since 1.4.0 | ||
|
|
@@ -2069,7 +2069,7 @@ object functions { | |
|
|
||
| /** | ||
| * @param columnName hyperbolic angle | ||
| * @return hyperbolic tangent of the given value, as if computed by [[java.lang.Math#tanh]] | ||
| * @return hyperbolic tangent of the given value, as if computed by `java.lang.Math.tanh` | ||
| * | ||
| * @group math_funcs | ||
| * @since 1.4.0 | ||
|
|
@@ -2094,7 +2094,7 @@ object functions { | |
| * Converts an angle measured in radians to an approximately equivalent angle measured in degrees. | ||
| * | ||
| * @param e angle in radians | ||
| * @return angle in degrees, as if computed by [[java.lang.Math#toDegrees]] | ||
| * @return angle in degrees, as if computed by `java.lang.Math.toDegrees` | ||
| * | ||
| * @group math_funcs | ||
| * @since 2.1.0 | ||
|
|
@@ -2105,7 +2105,7 @@ object functions { | |
| * Converts an angle measured in radians to an approximately equivalent angle measured in degrees. | ||
| * | ||
| * @param columnName angle in radians | ||
| * @return angle in degrees, as if computed by [[java.lang.Math#toDegrees]] | ||
| * @return angle in degrees, as if computed by `java.lang.Math.toDegrees` | ||
| * | ||
| * @group math_funcs | ||
| * @since 2.1.0 | ||
|
|
@@ -2130,7 +2130,7 @@ object functions { | |
| * Converts an angle measured in degrees to an approximately equivalent angle measured in radians. | ||
| * | ||
| * @param e angle in degrees | ||
| * @return angle in radians, as if computed by [[java.lang.Math#toRadians]] | ||
| * @return angle in radians, as if computed by `java.lang.Math.toRadians` | ||
| * | ||
| * @group math_funcs | ||
| * @since 2.1.0 | ||
|
|
@@ -2141,7 +2141,7 @@ object functions { | |
| * Converts an angle measured in degrees to an approximately equivalent angle measured in radians. | ||
| * | ||
| * @param columnName angle in degrees | ||
| * @return angle in radians, as if computed by [[java.lang.Math#toRadians]] | ||
| * @return angle in radians, as if computed by `java.lang.Math.toRadians` | ||
| * | ||
| * @group math_funcs | ||
| * @since 2.1.0 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a newline here. Seems doc could be broken.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added