-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-36660][SQL] Add cot as Scala and Python functions #33906
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 all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1800,6 +1800,15 @@ object functions { | |
| */ | ||
| def cosh(columnName: String): Column = cosh(Column(columnName)) | ||
|
|
||
| /** | ||
| * @param e angle in radians | ||
| * @return cotangent of the angle | ||
| * | ||
| * @group math_funcs | ||
| * @since 3.3.0 | ||
| */ | ||
| def cot(e: Column): Column = withExpr { Cot(e.expr) } | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's only add this one (
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the review. I saw other trig functions accept both
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, read the guides on the top of f functions.scala
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oh, thank you I just removed it. |
||
|
|
||
| /** | ||
| * Computes the exponential of the given value. | ||
| * | ||
|
|
||
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.
actually you should also add them in functions.R too. ref: aeb45df
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.
Sorry, I forgot about that. I'm pushing the follow-up PR soon.
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.
#33925
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.
this is fine. usually SparkR one is done separately in a separate JIRA.