From 730388b3693953795087cdc1eec31005f9eab98c Mon Sep 17 00:00:00 2001 From: Kent Yao Date: Tue, 21 Jan 2020 20:35:47 +0800 Subject: [PATCH] [SPARK-30547][SQL][FOLLOWUP] Update since anotation for CalendarInterval class ### What changes were proposed in this pull request? Mark `CalendarInterval` class with `since 3.0.0`. ### Why are the changes needed? https://www.oracle.com/technetwork/java/javase/documentation/index-137868.html#since This class is the first time going to the public, the annotation is the first time to add, and we don't want people to get confused and try to use it 2.4.x. ### Does this PR introduce any user-facing change? no ### How was this patch tested? no Closes #27299 from yaooqinn/SPARK-30547-F. Authored-by: Kent Yao Signed-off-by: Wenchen Fan --- .../java/org/apache/spark/unsafe/types/CalendarInterval.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/unsafe/src/main/java/org/apache/spark/unsafe/types/CalendarInterval.java b/common/unsafe/src/main/java/org/apache/spark/unsafe/types/CalendarInterval.java index 83d02ddba4..884db6fe27 100644 --- a/common/unsafe/src/main/java/org/apache/spark/unsafe/types/CalendarInterval.java +++ b/common/unsafe/src/main/java/org/apache/spark/unsafe/types/CalendarInterval.java @@ -41,7 +41,7 @@ import static org.apache.spark.sql.catalyst.util.DateTimeConstants.*; * they are two separated fields from microseconds. One month may be equal to 28, 29, 30 or 31 days * and one day may be equal to 23, 24 or 25 hours (daylight saving). * - * @since 1.5.0 + * @since 3.0.0 */ @Unstable public final class CalendarInterval implements Serializable {