uros-db commented on code in PR #51575:
URL: https://github.com/apache/spark/pull/51575#discussion_r2222821789


##########
sql/api/src/main/scala/org/apache/spark/sql/functions.scala:
##########
@@ -5683,6 +5683,32 @@ object functions {
   def unix_timestamp(s: Column, p: String): Column =
     Column.fn("unix_timestamp", s, lit(p))
 
+  /**
+   * Parses a string value to a time value. If the input is malformed, raises 
an error.
+   *
+   * @param str
+   *   string to be parsed to time
+   * @group datetime_funcs
+   * @since 4.1.0
+   */
+  def to_time(str: Column): Column = {
+    Column.fn("to_time", str)
+  }
+
+  /**
+   * Parses a string value to a time value. If the input is malformed, raises 
an error.
+   *
+   * @param str
+   *   string to be parsed to time
+   * @param format
+   *   time format pattern to follow

Review Comment:
   Added.



-- 
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-unsubscr...@spark.apache.org

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


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

Reply via email to