dongjoon-hyun commented on a change in pull request #26446: [SPARK-29393][SQL] Add `make_interval` function URL: https://github.com/apache/spark/pull/26446#discussion_r344468315
########## File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/intervalExpressions.scala ########## @@ -153,3 +153,106 @@ case class MultiplyInterval(interval: Expression, num: Expression) case class DivideInterval(interval: Expression, num: Expression) extends IntervalNumOperation(interval, num, divide, "divide") + +// 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.", + arguments = """ + Arguments: + * years - the number of years, positive or negative + * months - the number of months, positive or negative + * days - the number of days, positive or negative Review comment: `weeks` is missing before `days`. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
