From b7a88cd7ccba287f88f2aae1b9353868655658ff Mon Sep 17 00:00:00 2001 From: Jungtaek Lim Date: Mon, 24 Oct 2022 16:45:11 +0900 Subject: [PATCH] [SPARK-40821][SQL][SS][FOLLOWUP] Fix available version for new function window_time ### What changes were proposed in this pull request? This PR fixes the incorrect available version for new function `window_time` to 3.4.0 which is upcoming release for master branch. ### Why are the changes needed? The version information is incorrect. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? N/A Closes #38368 from HeartSaVioR/SPARK-40821-follow-up-minor-version-fix. Authored-by: Jungtaek Lim Signed-off-by: Jungtaek Lim --- .../org/apache/spark/sql/catalyst/expressions/WindowTime.scala | 2 +- sql/core/src/main/scala/org/apache/spark/sql/functions.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/WindowTime.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/WindowTime.scala index effc1506d741a..1bb934cb2023c 100644 --- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/WindowTime.scala +++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/WindowTime.scala @@ -39,7 +39,7 @@ import org.apache.spark.sql.types._ A2 2021-01-01 00:00:00 2021-01-01 00:05:00 2021-01-01 00:04:59.999999 1 """, group = "datetime_funcs", - since = "3.3.0") + since = "3.4.0") // scalastyle:on line.size.limit line.contains.tab case class WindowTime(windowColumn: Expression) extends UnaryExpression diff --git a/sql/core/src/main/scala/org/apache/spark/sql/functions.scala b/sql/core/src/main/scala/org/apache/spark/sql/functions.scala index 780bf925ad7e5..f38f24920faf9 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/functions.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/functions.scala @@ -3788,7 +3788,7 @@ object functions { * StructType { start: Timestamp, end: Timestamp } * * @group datetime_funcs - * @since 3.3.0 + * @since 3.4.0 */ def window_time(windowColumn: Column): Column = withExpr { WindowTime(windowColumn.expr)