mihailom-db commented on code in PR #48580:
URL: https://github.com/apache/spark/pull/48580#discussion_r1828897277
##########
sql/api/src/main/scala/org/apache/spark/sql/functions.scala:
##########
@@ -8073,6 +8161,16 @@ object functions {
def make_interval(years: Column): Column =
Column.fn("make_interval", years)
+ /**
+ * This is a special version of `make_interval` that performs the same
operation, but returns a
+ * NULL value instead of raising an error if interval cannot be created.
+ *
+ * @group url_funcs
+ * @since 4.0.0
+ */
+ def try_make_interval(): Column =
Review Comment:
You are right, we cannot get an error here, as this is the same as
makeinterval(0) which is not an overflow. Will update the pr.
--
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]