-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-36688][R] Add cot as an R function #33925
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
Conversation
Co-authored-by: Hyukjin Kwon <[email protected]>
|
Can one of the admins verify this patch? |
| #' @rdname column_math_functions | ||
| #' @aliases cot cot,Column-method | ||
| #' @note cot since 3.3.0 | ||
| setMethod("cot", |
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.
I think you should also add it into R/pkg/R/generics.R, and add a simple test at R/pkg/tests/fulltests/test_sparkSQL.R.
Also, let's create a separate JIRA for this one.
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.
Thanks, just added.
So, if I add a new function, should I make a JIRA ticket and PR separately just for R implementation?
|
Merged to master. |
What changes were proposed in this pull request?
Add cotangent as an R function.
Why are the changes needed?
My previous PR (#33906) missed R support.
Does this PR introduce any user-facing change?
Yes, users can now call the cotangent function as an R function.
How was this patch tested?
unit tests.