Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API, Core: implement types timestamp_ns and timestamptz_ns #8971

Closed
wants to merge 9 commits into from
Prev Previous commit
Next Next commit
chore: deprecate TimestampType.with[out]Zone()
  • Loading branch information
jacobmarble committed Nov 7, 2023
commit 77bd16db12c5797612369460f0a067e6b8d17e9e
4 changes: 4 additions & 0 deletions api/src/main/java/org/apache/iceberg/types/Types.java
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,14 @@ public static class TimestampType extends PrimitiveType {
private static final TimestampType INSTANCE_NANOS_WITHOUT_ZONE =
new TimestampType(false, ChronoUnit.NANOS);

/** @deprecated use {@link #microsWithZone()} instead. */
@Deprecated
public static TimestampType withZone() {
return INSTANCE_MICROS_WITH_ZONE;
}

/** @deprecated use {@link #microsWithoutZone()} instead. */
@Deprecated
public static TimestampType withoutZone() {
return INSTANCE_MICROS_WITHOUT_ZONE;
}
Expand Down