uros-db commented on code in PR #51826:
URL: https://github.com/apache/spark/pull/51826#discussion_r2282225284
##########
sql/api/src/main/scala/org/apache/spark/sql/functions.scala:
##########
@@ -6292,6 +6292,29 @@ object functions {
def timestamp_add(unit: String, quantity: Column, ts: Column): Column =
Column.internalFn("timestampadd", lit(unit), quantity, ts)
+ /**
+ * Returns the difference between two times, measured in specified units.
+ *
+ * @param unit
+ * A STRING representing the unit of the time difference. Supported units
are: "HOUR",
+ * "MINUTE", "SECOND", "MILLISECOND", and "MICROSECOND". The unit is
case-insensitive.
+ * @param start
+ * A starting TIME.
+ * @param end
+ * An ending TIME.
+ * @return
+ * The difference between two times, measured in specified units.
Review Comment:
Updated.
--
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]