diff --git a/sql/catalyst/src/main/java/org/apache/spark/sql/types/DataTypes.java b/sql/catalyst/src/main/java/org/apache/spark/sql/types/DataTypes.java index 9454c3c259..90a2baf130 100644 --- a/sql/catalyst/src/main/java/org/apache/spark/sql/types/DataTypes.java +++ b/sql/catalyst/src/main/java/org/apache/spark/sql/types/DataTypes.java @@ -54,11 +54,6 @@ public class DataTypes { */ public static final DataType TimestampType = TimestampType$.MODULE$; - /** - * Gets the TimestampNTZType object. - */ - public static final DataType TimestampNTZType = TimestampNTZType$.MODULE$; - /** * Gets the CalendarIntervalType object. */ diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/types/TimestampNTZType.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/types/TimestampNTZType.scala index 99c29e444c..03b975fb5f 100644 --- a/sql/catalyst/src/main/scala/org/apache/spark/sql/types/TimestampNTZType.scala +++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/types/TimestampNTZType.scala @@ -29,10 +29,8 @@ import org.apache.spark.annotation.Unstable * To represent an absolute point in time, use `TimestampType` instead. * * Please use the singleton `DataTypes.TimestampNTZType` to refer the type. - * @since 3.3.0 */ -@Unstable -class TimestampNTZType private() extends AtomicType { +private[spark] class TimestampNTZType private() extends AtomicType { /** * Internally, a timestamp is stored as the number of microseconds from * the epoch of 1970-01-01T00:00:00.000000(Unix system time zero) @@ -58,8 +56,5 @@ class TimestampNTZType private() extends AtomicType { * the TimestampNTZType class. Otherwise, the companion object would be of type * "TimestampNTZType" in byte code. Defined with a private constructor so the companion * object is the only possible instantiation. - * - * @since 3.3.0 */ -@Unstable -case object TimestampNTZType extends TimestampNTZType +private[spark] case object TimestampNTZType extends TimestampNTZType