Github user jaceklaskowski commented on a diff in the pull request: https://github.com/apache/spark/pull/19261#discussion_r139309246 --- Diff: sql/core/src/main/scala/org/apache/spark/sql/functions.scala --- @@ -2508,6 +2508,14 @@ object functions { def current_date(): Column = withExpr { CurrentDate() } /** + * Returns the current date in the given timezone as a date column. + * + * @group datetime_funcs + * @since 2.3.0 + */ + def current_date(timeZone: String): Column = withExpr { CurrentDate(Option(timeZone)) } --- End diff -- s/`Option`/`Some`
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org