MaxGekk commented on a change in pull request #33847:
URL: https://github.com/apache/spark/pull/33847#discussion_r696468648



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/intervalExpressions.scala
##########
@@ -227,7 +227,7 @@ case class DivideInterval(
 
 // scalastyle:off line.size.limit
 @ExpressionDescription(
-  usage = "_FUNC_(years, months, weeks, days, hours, mins, secs) - Make 
interval from years, months, weeks, days, hours, mins and secs.",
+  usage = "_FUNC_(years[, months[, weeks[, days[, hours[, mins[, secs]]]]]]) - 
Make interval from years, months, weeks, days, hours, mins and secs.",

Review comment:
       `years` is optional too, see 
https://github.com/apache/spark/blob/39002cb99514010f6d6cc2e575b9eab1694f04ef/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/intervalExpressions.scala#L298




-- 
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