You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/09/04 00:15:26 UTC

[GitHub] [spark] HyukjinKwon commented on a change in pull request #33906: [SPARK-36660][SQL] Add cot as Scala and Python functions

HyukjinKwon commented on a change in pull request #33906:
URL: https://github.com/apache/spark/pull/33906#discussion_r702206167



##########
File path: sql/core/src/main/scala/org/apache/spark/sql/functions.scala
##########
@@ -1800,6 +1800,24 @@ 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.2.0
+   */
+  def cot(e: Column): Column = withExpr { Cot(e.expr) }

Review comment:
       Yeah, read the guides on the top of f functions.scala




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org