ueshin commented on code in PR #45796:
URL: https://github.com/apache/spark/pull/45796#discussion_r1546789644


##########
connector/connect/client/jvm/src/main/scala/org/apache/spark/sql/functions.scala:
##########
@@ -1957,6 +1958,29 @@ object functions {
    */
   def try_sum(e: Column): Column = Column.fn("try_sum", e)
 
+  /**
+   * Casts the column to a different data type and the result is null on 
failure.
+   *
+   * @group normal_funcs
+   * @since 4.0.0
+   */
+  def try_cast(e: Column, dataType: DataType): Column = Column { builder =>

Review Comment:
   I think we should have it as `Column` method to be consistent with `cast`?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to