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/03 06:58:46 UTC

[GitHub] [spark] HyukjinKwon commented on a change in pull request #33906: [SPARK-36660][SQL] Support COT by Dataframe operations

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



##########
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:
       Let's only add this one (`Column` only). 

##########
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

Review comment:
       3.3.0




-- 
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