panbingkun commented on code in PR #41653:
URL: https://github.com/apache/spark/pull/41653#discussion_r1234003109
##########
connector/connect/client/jvm/src/main/scala/org/apache/spark/sql/functions.scala:
##########
@@ -1807,6 +1807,75 @@ object functions {
*/
def sqrt(colName: String): Column = sqrt(Column(colName))
+ /**
+ * Returns the sum of `left` and `right` and the result is null on overflow.
The acceptable
+ * input types are the same with the `+` operator.
+ *
+ * @note
+ * Only Numeric type is supported in this function, while `try_add` in SQL
supports Numeric,
+ * DATE, TIMESTAMP, and INTERVAL.
+ *
+ * @group math_funcs
+ * @since 3.5.0
+ */
+ def try_add(left: Column, right: Column): Column = Column.fn("try_add",
left, right)
+
+ /**
+ * Returns the mean calculated from values of a group and the result is null
on overflow.
+ *
+ * @group math_funcs
+ * @since 3.5.0
+ */
+ def try_avg(e: Column): Column = Column.fn("try_avg", e)
+
+ /**
+ * Returns `dividend``/``divisor`. It always performs floating point
division. Its result is
+ * always null if `divisor` is 0.
+ *
+ * @note
Review Comment:
👌🏻
--
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]