[ https://issues.apache.org/jira/browse/SPARK-28134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16870700#comment-16870700 ]
Tony Zhang commented on SPARK-28134: ------------------------------------ Hi [~yumwang], I can see these trigonometric functions are defined and implemented in mathExpressions.scala, and they work in queries already. Or did you mean these functions are not supported in certain use cases? > Trigonometric Functions > ----------------------- > > Key: SPARK-28134 > URL: https://issues.apache.org/jira/browse/SPARK-28134 > Project: Spark > Issue Type: Sub-task > Components: SQL > Affects Versions: 3.0.0 > Reporter: Yuming Wang > Priority: Major > > ||Function (radians)||Function (degrees)||Description|| > |{{acos(_x_}})|{{acosd(_x_}})|inverse cosine| > |{{asin(_x_}})|{{asind(_x_}})|inverse sine| > |{{atan(_x_}})|{{atand(_x_}})|inverse tangent| > |{{atan2(_y_}}, _{{x}}_)|{{atan2d(_y_}}, _{{x}}_)|inverse tangent of > {{_y_}}/_{{x}}_| > |{{cos(_x_}})|{{cosd(_x_}})|cosine| > |{{cot(_x_}})|{{cotd(_x_}})|cotangent| > |{{sin(_x_}})|{{sind(_x_}})|sine| > |{{tan(_x_}})|{{tand(_x_}})|tangent| > > [https://www.postgresql.org/docs/12/functions-math.html#FUNCTIONS-MATH-TRIG-TABLE] > > -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org