-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-36683][SQL] Add new built-in SQL functions: SEC and CSC #33988
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
sarutak
left a comment
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.
@yutoacts Than you for adding these new built-in functions.
Could you add tests to MathFunctionsSuite and test_functions.py?
sql/core/src/test/resources/sql-tests/results/operators.sql.out
Outdated
Show resolved
Hide resolved
|
Jenkins, add to whitelist. |
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
For the Python code, it's better to follow @HyukjinKwon 's comments in #33992 |
|
Test build #143242 has finished for PR 33988 at commit
|
OK, and seems like #33992 could conflict with this PR. I'll wait for it to be merged before pushing test_functions.py. |
|
Test build #143292 has finished for PR 33988 at commit
|
|
Kubernetes integration test unable to build dist. exiting with code: 1 |
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Test build #143295 has finished for PR 33988 at commit
|
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/FunctionRegistry.scala
Show resolved
Hide resolved
e0e90a1 to
0666f5c
Compare
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Test build #143400 has finished for PR 33988 at commit
|
|
@yutoacts you can use |
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
Thank you. It should be fixed now. |
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Kubernetes integration test starting |
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Kubernetes integration test status failure |
|
Test build #143402 has finished for PR 33988 at commit
|
|
Test build #143404 has finished for PR 33988 at commit
|
|
Test build #143407 has finished for PR 33988 at commit
|
|
Merged to |
### What changes were proposed in this pull request? Add secant and cosecant as R functions. ### Why are the changes needed? [SEC and CSC have been added](#33988) thus these functions need R support. ### Does this PR introduce _any_ user-facing change? Yes, users can now call those functions as R functions. ### How was this patch tested? unit tests added. Closes #34067 from yutoacts/SPARK-36824. Authored-by: Yuto Akutsu <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]>
What changes were proposed in this pull request?
Add new built-in SQL functions: secant and cosecant, and add them as Scala and Python functions.
Why are the changes needed?
Cotangent has been supported in Spark SQL but Secant and Cosecant are missing though I believe they can be used as much as cot.
Related Links: SPARK-20751 SPARK-36660
Does this PR introduce any user-facing change?
Yes, users can now use these functions.
How was this patch tested?
Unit tests