Skip to content

Commit 5f30948

Browse files
committed
chore: deprecate TimestampType.with[out]Zone()
1 parent e0f6d3b commit 5f30948

File tree

1 file changed

+4
-0
lines changed
  • api/src/main/java/org/apache/iceberg/types

1 file changed

+4
-0
lines changed

api/src/main/java/org/apache/iceberg/types/Types.java

+4
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,14 @@ public static class TimestampType extends PrimitiveType {
218218
private static final TimestampType INSTANCE_NANOS_WITHOUT_ZONE =
219219
new TimestampType(false, ChronoUnit.NANOS);
220220

221+
/** @deprecated use {@link #microsWithZone()} instead. */
222+
@Deprecated
221223
public static TimestampType withZone() {
222224
return INSTANCE_MICROS_WITH_ZONE;
223225
}
224226

227+
/** @deprecated use {@link #microsWithoutZone()} instead. */
228+
@Deprecated
225229
public static TimestampType withoutZone() {
226230
return INSTANCE_MICROS_WITHOUT_ZONE;
227231
}

0 commit comments

Comments
 (0)